summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vim/.vimrc4
1 files changed, 0 insertions, 4 deletions
diff --git a/vim/.vimrc b/vim/.vimrc
index 7d3bf10..2f2d5ae 100644
--- a/vim/.vimrc
+++ b/vim/.vimrc
@@ -87,7 +87,6 @@ autocmd User LspSetup call LspOptionsSet(#{
\ autoHighlightDiags: v:true,
\ })
-" one list instead of N copy-pasted if-executable/augroup blocks
autocmd User LspSetup call LspAddServer([
\ #{name: 'pylsp', filetype: 'python', path: 'pylsp'},
\ #{name: 'clangd', filetype: ['c', 'cpp', 'objc', 'objcpp'],
@@ -100,9 +99,6 @@ autocmd User LspSetup call LspAddServer([
\ path: 'typescript-language-server', args: ['--stdio']},
\ ])
-" keymaps: explicit :Lsp* commands mapped by hand, buffer-local, same idea as
-" your old on_lsp_buffer_enabled() but no separate function/augroup needed —
-" this fires once per attached buffer via the plugin's own event
autocmd User LspAttached call s:lsp_keymaps()
function! s:lsp_keymaps() abort
nmap <buffer> gs :LspDocumentSymbol<CR>