From 9b692e9a8e8521bf112d471aa5e505ccf1de89d3 Mon Sep 17 00:00:00 2001 From: Sanchayan Maity Date: Wed, 20 Oct 2021 12:11:31 +0530 Subject: [PATCH] nvim: init: Disable virtual text for all diagnostics They frequently get clipped beyond the window border due to being too long and are not that helpful. While at it, use our own preferable default sane options for the rest. --- nvim/.config/nvim/init.lua | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/nvim/.config/nvim/init.lua b/nvim/.config/nvim/init.lua index 9e3db1e..7028294 100644 --- a/nvim/.config/nvim/init.lua +++ b/nvim/.config/nvim/init.lua @@ -95,6 +95,20 @@ vim.g.dispatch_no_maps = 1 -- We do this to prevent the loading of the system fzf.vim plugin. This is -- present at least on Arch/Manjaro vim.api.nvim_command('set rtp-=/usr/share/vim/vimfiles') +-- Disable virtual text for all diagnostics +vim.diagnostic.config({ + underline = true, + signs = true, + virtual_text = false, + update_in_insert = false, + severity_sort = true, + float = { + show_header = false, + source = 'always', + border = 'rounded', + focusable = false, + }, +}) require 'plugins' require 'autocmd'