Skip to content

Commit 268a775

Browse files
feat: add vim-lsp for working with LSPs
1 parent 7bbc94e commit 268a775

File tree

4 files changed

+23
-0
lines changed

4 files changed

+23
-0
lines changed

.gitmodules

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,3 +52,9 @@
5252
[submodule "pack/cedarvim/start/yats.vim"]
5353
path = pack/cedarvim/start/yats.vim
5454
url = https://github.com/HerringtonDarkholme/yats.vim
55+
[submodule "pack/cedarvim/start/vim-lsp"]
56+
path = pack/cedarvim/start/vim-lsp
57+
url = https://github.com/prabirshrestha/vim-lsp.git
58+
[submodule "pack/cedarvim/start/vim-lsp-settings"]
59+
path = pack/cedarvim/start/vim-lsp-settings
60+
url = https://github.com/mattn/vim-lsp-settings.git

after/plugin/user_customizations.vim

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,18 @@
1+
"========= LSP ========="
2+
3+
let g:lsp_settings = { 'typeprof': { 'disabled': 1 } }
4+
let g:lsp_document_highlight_enabled = 0
5+
let g:lsp_document_code_action_signs_enabled = 0
6+
set foldmethod=expr
7+
\ foldexpr=lsp#ui#vim#folding#foldexpr()
8+
\ foldtext=lsp#ui#vim#folding#foldtext()
9+
set foldlevel=99
10+
11+
nmap gd :LspDefinition<CR>
12+
nmap gpd :LspPeekDefinition<CR>
13+
nmap gs :LspDocumentSymbol<CR>
14+
nmap gS :LspWorkspaceSymbol<CR>
15+
116
" source user customizations if defined
217
if filereadable(expand("~/.vimrc.after"))
318
source ~/.vimrc.after

pack/cedarvim/start/vim-lsp

Submodule vim-lsp added at f7ccf00
Submodule vim-lsp-settings added at 3debb34

0 commit comments

Comments
 (0)