~keving/dotfiles

3ca136ced9b61389f3c598614e94d8a878865e37 — Kevin Guillaumond 2 months ago 67df409
Add some vim configs for Rust
2 files changed, 4 insertions(+), 0 deletions(-)

A .config/nvim/ftplugin/rust.vim
M .config/nvim/lua/plugin_configs/nvim-lspconfig.lua
A .config/nvim/ftplugin/rust.vim => .config/nvim/ftplugin/rust.vim +3 -0
@@ 0,0 1,3 @@
nnoremap <silent> <leader>cc :wa<CR>:! cargo check<CR>
nnoremap <silent> <leader>ct :wa<CR>:! cargo test<CR>
nnoremap <silent> <leader>cr :wa<CR>:! cargo run<CR>

M .config/nvim/lua/plugin_configs/nvim-lspconfig.lua => .config/nvim/lua/plugin_configs/nvim-lspconfig.lua +1 -0
@@ 16,6 16,7 @@ require'lspconfig'.clangd.setup{
require'lspconfig'.pyright.setup{
  filetypes = {'python'},
}
require'lspconfig'.rls.setup{}  -- TODO use rust-analizer


local opts = { noremap=true, silent=true }