commit 2e03554ec3fa622d0fba6ca386d1d4603628024d
parent 2297536e83208e504d8473857ac97dca4a8741c1
Author: Chris Bracken <chris@bracken.jp>
Date: Tue, 20 Aug 2024 17:52:00 -0700
vim: add clangd language server support
Let's see if I get annoyed by this.
Diffstat:
2 files changed, 5 insertions(+), 0 deletions(-)
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -11,6 +11,7 @@ Plug 'rhysd/vim-clang-format' " clang-format.
" Language support plugins.
Plug 'https://gn.googlesource.com/gn', { 'rtp': 'misc/vim' }
Plug 'rust-lang/rust.vim'
+Plug 'neovim/nvim-lspconfig'
" Behaviour.
Plug 'ibhagwan/fzf-lua'
@@ -18,6 +19,9 @@ Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
call plug#end()
+" Configure language servers.
+source $HOME/.config/nvim/lsp.lua
+
" Bind fancier manpage plugin to Shift-k.
runtime ftplugin/man.vim
set keywordprg=:Man
diff --git a/.config/nvim/lsp.lua b/.config/nvim/lsp.lua
@@ -0,0 +1 @@
+require'lspconfig'.clangd.setup{}