commit 619dc68c69449b0a9c078dc1dc64e26830ea088e
parent 2b480c2a1b48b900dfede5fe83225c515514f217
Author: Chris Bracken <chris@bracken.jp>
Date: Fri, 23 Aug 2024 19:12:51 -0700
vim: rename lsp.lua to plugins.lua
Diffstat:
3 files changed, 7 insertions(+), 6 deletions(-)
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -20,8 +20,8 @@ Plug 'tpope/vim-fugitive'
Plug 'airblade/vim-gitgutter'
call plug#end()
-" Configure language servers.
-source $HOME/.config/nvim/lsp.lua
+" Configure plugins that require Lua-based setup.
+source $HOME/.config/nvim/plugins.lua
" Bind fancier manpage plugin to Shift-k.
runtime ftplugin/man.vim
diff --git a/.config/nvim/lsp.lua b/.config/nvim/lsp.lua
@@ -1,4 +0,0 @@
-require'lspconfig'.clangd.setup{}
-require'lspconfig'.dartls.setup{}
-require'lspconfig'.rust_analyzer.setup{}
-vim.diagnostic.config{virtual_text = false, signs = false, underline = false, update_in_insert = false};
diff --git a/.config/nvim/plugins.lua b/.config/nvim/plugins.lua
@@ -0,0 +1,5 @@
+-- Language server configuration.
+require('lspconfig').clangd.setup{}
+require('lspconfig').dartls.setup{}
+require('lspconfig').rust_analyzer.setup{}
+vim.diagnostic.config{virtual_text = false, signs = false, underline = false, update_in_insert = false};