summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2024-03-25 22:38:46 +0530
committerBrahmajit Das <brahmajit.xyz@gmail.com>2024-03-25 22:46:43 +0530
commit8c7dc03ce2dd370cdc3c660762acdcd8c855ba93 (patch)
treeaf44d049773e94e42dd5d71a671d89a08db12ef8
parent50d8044d617fe349cedb9a624757d3f47480f942 (diff)
nvim: plugins: lsp: don't open diagnostic floating window on hover
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
-rw-r--r--lua/plugins/lsp.lua4
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua
index 2ba2690..bb2ae60 100644
--- a/lua/plugins/lsp.lua
+++ b/lua/plugins/lsp.lua
@@ -74,8 +74,8 @@ for type, icon in pairs(signs) do
end
vim.o.updatetime = 250
-vim.cmd [[autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})]]
-vim.cmd [[autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
+-- vim.cmd [[autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false, scope="cursor"})]]
+-- vim.cmd [[autocmd! CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focus=false})]]
vim.cmd [[autocmd! ColorScheme * highlight NormalFloat guibg=#4c4f69]]
vim.cmd [[autocmd! ColorScheme * highlight FloatBorder guifg=white guibg=#1f2335]]