commit 811dcee73c3f20045716852b4b15e7dfc07062dc
parent 1d6ce90f829c5b63150bfc422f999fc0c08010bc
Author: Pablo Cárdenas <pablo.cardenas@imca.edu.pe>
Date: Tue, 15 Aug 2023 13:14:24 -0500
Remove vim-lsp
Diffstat:
4 files changed, 0 insertions(+), 40 deletions(-)
diff --git a/.gitmodules b/.gitmodules
@@ -16,12 +16,6 @@
[submodule "pack/pablo/start/vim-surround"]
path = pack/pablo/start/vim-surround
url = https://github.com/tpope/vim-surround.git
-[submodule "pack/pablo/start/vim-lsp"]
- path = pack/pablo/start/vim-lsp
- url = https://github.com/prabirshrestha/vim-lsp
-[submodule "pack/pablo/start/vim-lsp-settings"]
- path = pack/pablo/start/vim-lsp-settings
- url = https://github.com/mattn/vim-lsp-settings
[submodule "pack/pablo/start/ultisnips"]
path = pack/pablo/start/ultisnips
url = https://github.com/SirVer/ultisnips
diff --git a/pack/pablo/start/vim-lsp b/pack/pablo/start/vim-lsp
@@ -1 +0,0 @@
-Subproject commit e74bd3c986484845a4b87e5aa013773d52030a75
diff --git a/pack/pablo/start/vim-lsp-settings b/pack/pablo/start/vim-lsp-settings
@@ -1 +0,0 @@
-Subproject commit 63d1d3108e7f401c6b20257ab8a61602938ff73b
diff --git a/plugin/pablo/vim-lsp.vim b/plugin/pablo/vim-lsp.vim
@@ -1,32 +0,0 @@
-if executable('pylsp')
- " pip install python-lsp-server
- au User lsp_setup call lsp#register_server({
- \ 'name': 'pylsp',
- \ 'cmd': {server_info->['pylsp']},
- \ 'allowlist': ['python'],
- \ })
-endif
-
-
-function! s:on_lsp_buffer_enabled() abort
- setlocal omnifunc=lsp#complete
- if exists('+tagfunc') | setlocal tagfunc=lsp#tagfunc | endif
- nmap <buffer> gd <plug>(lsp-definition)
- nmap <buffer> gs <plug>(lsp-document-symbol-search)
- nmap <buffer> gS <plug>(lsp-workspace-symbol-search)
- nmap <buffer> gr <plug>(lsp-references)
- nmap <buffer> gi <plug>(lsp-implementation)
- nmap <buffer> gt <plug>(lsp-type-definition)
- nmap <buffer> <leader>rn <plug>(lsp-rename)
- nmap <buffer> [g <plug>(lsp-previous-diagnostic)
- nmap <buffer> ]g <plug>(lsp-next-diagnostic)
- nmap <buffer> K <plug>(lsp-hover)
- nnoremap <buffer> <expr><c-f> lsp#scroll(+4)
- nnoremap <buffer> <expr><c-d> lsp#scroll(-4)
-endfunction
-
-augroup lsp_install
- au!
- " call s:on_lsp_buffer_enabled only for languages that has the server registered.
- autocmd User lsp_buffer_enabled call s:on_lsp_buffer_enabled()
-augroup END