From 97ce8456231b997135be6c5f1afaee08eff2cbb1 Mon Sep 17 00:00:00 2001 From: Marc Coquand Date: Tue, 25 Jun 2024 11:28:53 -0500 Subject: Updates --- vimrc | 44 ++++++++++++++++++++++++++++++++++++-------- 1 file changed, 36 insertions(+), 8 deletions(-) (limited to 'vimrc') diff --git a/vimrc b/vimrc index 7a47e75..966bfdf 100644 --- a/vimrc +++ b/vimrc @@ -1,36 +1,64 @@ -packadd lsp -packadd vim-colors-plain -set tabstop=2 -set expandtab -set shiftwidth=2 +packadd snippets + +" Indentation +set tabstop=8 set shiftround set nobackup set autoindent set smartindent set cindent -let mapleader=" " + +" Theme syntax on -colorscheme plain-cterm +set background=light +colorscheme quiet +hi Normal ctermfg=black ctermbg=white +hi SpellBad term=reverse cterm=underline ctermfg=124 ctermbg=white +hi SpellCap term=reverse cterm=underline ctermfg=25 ctermbg=white +hi SpellRare term=reverse cterm=underline ctermfg=30 ctermbg=white +hi SpellLocal term=reverse cterm=underline ctermfg=90 ctermbg=white + +" Cursor - switch between line and full +let &t_SI = "\[6 q" +let &t_SR = "\[4 q" +let &t_EI = "\[2 q" + +" LSP +packadd lsp call LspAddServer([#{ \ name: 'caml', \ filetype: ['ocaml'], - \ path: '/home/mccd/.opam/default/bin/ocamllsp', + \ path: '/home/mccd/.opam/5.2.0/bin/ocamllsp', \ args: [], \ syncInit: v:true \ }]) +call LspAddServer([#{ + \ name: 'golang', + \ filetype: ['go', 'gomod'], + \ path: '/usr/bin/gopls', + \ args: ['serve'], + \ syncInit: v:true + \ }]) +" Keybindings +let mapleader=" " noremap , : noremap e :e **/ noremap gd mB:LspGotoDefinition noremap ca :LspCodeAction noremap k :LspDiagCurrent nnoremap l :ls:b +nnoremap = :LspFormat +" Spell au BufEnter *.org set spell +" Wildmenu set wildmenu set wildmode=longest:full,lastused set wildignore=_build/**,release/** set grepprg=git\ grep\ -nH + + -- cgit v1.2.3