all repos — dotfiles @ 495f841eb3c8278bcf6b1e3e2101c0d6440f24d6

my *nix dotfiles

nvim: use float for diagnostics
Anirudh Oppiliappan x@icyphox.sh
Fri, 11 Mar 2022 21:06:10 +0530
commit

495f841eb3c8278bcf6b1e3e2101c0d6440f24d6

parent

d0d2ee45b3081f358233c07cdbc86fc7dd9ce7e4

3 files changed, 13 insertions(+), 2 deletions(-)

jump to
M config/nvim/init.luaconfig/nvim/init.lua

@@ -25,7 +25,6 @@ require('treesitter')

require('fzy/fzy') -- lsp setup --- require('lsp.yaml') shits too noisy --- require('lsp.lua') it's horrible +require('lsp.config') require('lsp.python') require('lsp.go')
A config/nvim/lua/lsp/config.lua

@@ -0,0 +1,11 @@

+vim.diagnostic.config({ + virtual_text = false, + signs = true, + underline = true, + update_in_insert = true, + severity_sort = false, +}) + +-- hover for diagnostic +vim.opt.updatetime = 250 +vim.cmd [[autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(bor, {focus=false, border='rounded'})]]
M config/nvim/lua/settings.luaconfig/nvim/lua/settings.lua

@@ -28,6 +28,7 @@ o.showmode = true

o.listchars='tab:│ ,nbsp:␣,trail:·,extends:>,precedes:<' o.hidden = true o.completeopt = { 'menuone', 'noselect', 'noinsert' } +o.signcolumn = 'yes:2' o.wildignore = [[ .git,.hg,.svn *.aux,*.out,*.toc