From 92ca4878641f31f563eccd3a003993f8bcc9a21a Mon Sep 17 00:00:00 2001 From: Serguey Parkhomovsky Date: Fri, 27 Mar 2026 23:07:42 -0700 Subject: messing around a bit --- vim/.vimrc | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'vim') diff --git a/vim/.vimrc b/vim/.vimrc index 12721d7..c785a44 100644 --- a/vim/.vimrc +++ b/vim/.vimrc @@ -64,12 +64,13 @@ let g:tokyonight_style = 'night' colorscheme tokyonight " ── LSP (yegappan/lsp) ──────────────────────────────────────────────────────── -def g:LspOnSetup() +def LspOnSetup() var lspServers = [ { name: 'rust', filetype: ['rust'], path: 'rust-analyzer', + args: [], syncInit: true, } ] @@ -78,14 +79,14 @@ enddef augroup MyLsp autocmd! - autocmd User LspSetup call g:LspOnSetup() + autocmd User LspSetup call LspOnSetup() autocmd FileType rust { - nnoremap gd LspGotoDefinition - nnoremap gD LspGotoDeclaration - nnoremap gi LspGotoImpl - nnoremap gr LspShowReferences - nnoremap gy LspGotoTypeDef - nnoremap K LspHover + nnoremap gd LspGotoDefinition + nnoremap gD LspGotoDeclaration + nnoremap gi LspGotoImpl + nnoremap gr LspShowReferences + nnoremap gy LspGotoTypeDef + nnoremap K LspHover nnoremap lr LspRename nnoremap la LspCodeAction nnoremap lf LspFormat @@ -94,6 +95,7 @@ augroup MyLsp nnoremap ]d LspDiagNext nnoremap lo LspOutline nnoremap li LspInlayHints toggle + nnoremap ls LspSymSearch } augroup END @@ -108,8 +110,6 @@ nnoremap l " ── Airline ─────────────────────────────────────────────────────────────────── let g:airline_theme = 'tokyonight' -let g:airline_powerline_fonts = 0 " set to 1 if you have a Nerd Font -let g:airline#extensions#lsp#enabled = 1 " ── FZF ─────────────────────────────────────────────────────────────────────── " Use ripgrep for :Files if available -- cgit v1.2.3