commit b97310f4c5939358dfb0068e8bf064011aa2e74d
parent 1c5ac72ed9c7828082bb6b3ff551b9ad8178742f
Author: Chris Bracken <chris@bracken.jp>
Date: Thu, 22 Aug 2024 21:59:03 -0700
vim: disable lsp diagnostics
They can be viewed in the quickfix window with <leader>q.
Diffstat:
2 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim
@@ -100,6 +100,7 @@ nnoremap <leader>f <cmd>FzfLua files<CR>
nnoremap <leader>g <cmd>FzfLua grep<CR>
nnoremap <leader>l <cmd>FzfLua live_grep<CR>
nnoremap <leader>c <cmd>FzfLua builtin commands<CR>
+nnoremap <leader>q <cmd>lua vim.diagnostic.setqflist()<CR>
" Configure colour scheme and syntax highlighting.
if &t_Co > 2
diff --git a/.config/nvim/lsp.lua b/.config/nvim/lsp.lua
@@ -1,2 +1,3 @@
require'lspconfig'.clangd.setup{}
require'lspconfig'.dartls.setup{}
+vim.diagnostic.config{virtual_text = false, signs = false, underline = false, update_in_insert = false};