dotfiles

Personal dotfiles
git clone https://git.bracken.jp/dotfiles.git
Log | Files | Refs | LICENSE

commit 567308e2d0f0e9e88300d649d0ded2e17e3ffcb4
parent 473bc63a28b68640e22a1880da0cc38e18780917
Author: Chris Bracken <chris@bracken.jp>
Date:   Sat, 24 Aug 2024 13:15:52 -0700

vim: clean up LSP config

Consistent formatting; extract a local variable.

Diffstat:
M.config/nvim/plugins.lua | 18+++++++++++++-----
1 file changed, 13 insertions(+), 5 deletions(-)

diff --git a/.config/nvim/plugins.lua b/.config/nvim/plugins.lua @@ -1,8 +1,16 @@ -- Git add/modify/removed signs in the gutter. -require('gitsigns').setup{} +require('gitsigns').setup({}) -- 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}; +local lspconfig = require('lspconfig') +lspconfig.clangd.setup({}) +lspconfig.dartls.setup({}) +lspconfig.rust_analyzer.setup({}) + +-- Don't show warnings, errors, etc. by default. +vim.diagnostic.config({ + virtual_text = false, + signs = false, + underline = false, + update_in_insert = false, +});