Skip to content

Commit

Permalink
remove rust-tools bugginess
Browse files Browse the repository at this point in the history
  • Loading branch information
emattiza committed Apr 17, 2023
1 parent fea0b4f commit 6693dd2
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 45 deletions.
17 changes: 0 additions & 17 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -58,11 +58,6 @@
url = "github:nanotee/sqls.nvim";
flake = false;
};
rust-tools = {
url = "github:simrat39/rust-tools.nvim";
flake = false;
};

vim-terraform = {
url = "github:hashivim/vim-terraform";
flake = false;
Expand Down Expand Up @@ -308,7 +303,6 @@
"sqls-nvim"
"glow-nvim"
"telescope"
"rust-tools"
"onedark"
"nightfox"
"vim-terraform"
Expand Down
22 changes: 0 additions & 22 deletions modules/lsp/lsp.nix
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,6 @@ in {
if cfg.rust.enable
then [
crates-nvim
rust-tools
(
if cfg.hare
then hare-vim
Expand All @@ -93,26 +92,6 @@ in {
);

configRC = ''
${
if cfg.rust.enable
then ''
function! MapRustTools()
nnoremap <silent><leader>ri <cmd>lua require('rust-tools.inlay_hints').toggle_inlay_hints()<CR>
nnoremap <silent><leader>rr <cmd>lua require('rust-tools.runnables').runnables()<CR>
nnoremap <silent><leader>re <cmd>lua require('rust-tools.expand_macro').expand_macro()<CR>
nnoremap <silent><leader>rc <cmd>lua require('rust-tools.open_cargo_toml').open_cargo_toml()<CR>
nnoremap <silent><leader>rg <cmd>lua require('rust-tools.crate_graph').view_crate_graph('x11', nil)<CR>
endfunction
autocmd filetype rust nnoremap <silent><leader>ri <cmd>lua require('rust-tools.inlay_hints').toggle_inlay_hints()<CR>
autocmd filetype rust nnoremap <silent><leader>rr <cmd>lua require('rust-tools.runnables').runnables()<CR>
autocmd filetype rust nnoremap <silent><leader>re <cmd>lua require('rust-tools.expand_macro').expand_macro()<CR>
autocmd filetype rust nnoremap <silent><leader>rc <cmd>lua require('rust-tools.open_cargo_toml').open_cargo_toml()<CR>
autocmd filetype rust nnoremap <silent><leader>rg <cmd>lua require('rust-tools.crate_graph').view_crate_graph('x11', nil)<CR>
''
else ""
}
${
if cfg.nix
then ''
Expand Down Expand Up @@ -347,7 +326,6 @@ in {
name = "crates.nvim",
}
}
require('rust-tools').setup(rustopts)
''}
${writeIf cfg.terraform ''
Expand Down

0 comments on commit 6693dd2

Please sign in to comment.