summaryrefslogtreecommitdiff
path: root/vimrc
blob: 7a47e75fe890aa3c6bf364fb55b26474bffc14a5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
packadd lsp
packadd vim-colors-plain
set tabstop=2
set expandtab
set shiftwidth=2 
set shiftround
set nobackup 
set autoindent
set smartindent
set cindent
let mapleader=" "
syntax on
colorscheme plain-cterm

call LspAddServer([#{
	\    name: 'caml',
	\    filetype: ['ocaml'],
	\    path: '/home/mccd/.opam/default/bin/ocamllsp',
	\    args: [],
	\    syncInit: v:true
	\  }])


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>

au BufEnter *.org set spell

set wildmenu
set wildmode=longest:full,lastused
set wildignore=_build/**,release/**
set grepprg=git\ grep\ -nH