Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add vim-lsp for working with LSPs #56

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -52,3 +52,9 @@
[submodule "pack/cedarvim/start/yats.vim"]
path = pack/cedarvim/start/yats.vim
url = https://github.com/HerringtonDarkholme/yats.vim
[submodule "pack/cedarvim/start/vim-lsp"]
path = pack/cedarvim/start/vim-lsp
url = https://github.com/prabirshrestha/vim-lsp.git
[submodule "pack/cedarvim/start/vim-lsp-settings"]
path = pack/cedarvim/start/vim-lsp-settings
url = https://github.com/mattn/vim-lsp-settings.git
15 changes: 15 additions & 0 deletions after/plugin/user_customizations.vim
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
"========= LSP ========="

let g:lsp_settings = { 'typeprof': { 'disabled': 1 } }
let g:lsp_document_highlight_enabled = 0
let g:lsp_document_code_action_signs_enabled = 0
set foldmethod=expr
\ foldexpr=lsp#ui#vim#folding#foldexpr()
\ foldtext=lsp#ui#vim#folding#foldtext()
set foldlevel=99

nmap gd :LspDefinition<CR>
nmap gpd :LspPeekDefinition<CR>
nmap gs :LspDocumentSymbol<CR>
nmap gS :LspWorkspaceSymbol<CR>

" source user customizations if defined
if filereadable(expand("~/.vimrc.after"))
source ~/.vimrc.after
Expand Down
1 change: 1 addition & 0 deletions pack/cedarvim/start/vim-lsp
Submodule vim-lsp added at 04428c
1 change: 1 addition & 0 deletions pack/cedarvim/start/vim-lsp-settings
Submodule vim-lsp-settings added at 9cf584