diff options
author | Marc Coquand <marc@mccd.space> | 2024-06-25 11:28:53 -0500 |
---|---|---|
committer | Marc Coquand <marc@mccd.space> | 2024-06-25 11:28:53 -0500 |
commit | 97ce8456231b997135be6c5f1afaee08eff2cbb1 (patch) | |
tree | 32f7059aad1b6f9e69c37dd5a5b963037d9b7a06 /vimrc | |
parent | 220906303fe6a69760514d2dcf49e5abfa079657 (diff) | |
download | rcm-97ce8456231b997135be6c5f1afaee08eff2cbb1.tar.gz rcm-97ce8456231b997135be6c5f1afaee08eff2cbb1.tar.bz2 rcm-97ce8456231b997135be6c5f1afaee08eff2cbb1.zip |
Updates
Diffstat (limited to '')
-rw-r--r-- | vimrc | 44 |
1 files changed, 36 insertions, 8 deletions
@@ -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 = "\<Esc>[6 q" +let &t_SR = "\<Esc>[4 q" +let &t_EI = "\<Esc>[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 <leader>e :e **/ noremap gd mB:LspGotoDefinition<Enter> noremap <leader>ca :LspCodeAction<Enter> noremap <leader>k :LspDiagCurrent<Enter> nnoremap <leader>l :ls<CR>:b<space> +nnoremap <leader>= :LspFormat<Enter> +" Spell au BufEnter *.org set spell +" Wildmenu set wildmenu set wildmode=longest:full,lastused set wildignore=_build/**,release/** set grepprg=git\ grep\ -nH + + |