Skip to content

Commit

Permalink
fix(nvim): disable cursorhold diagnostic open
Browse files Browse the repository at this point in the history
  • Loading branch information
caarlos0 committed Sep 11, 2023
1 parent 8c898c7 commit b3537df
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions modules/neovim/config/lua/user/lsp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -236,11 +236,11 @@ vim.diagnostic.config({
vim.lsp.handlers["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, float_config)
vim.lsp.handlers["textDocument/signatureHelp"] = vim.lsp.with(vim.lsp.handlers.signature_help, float_config)

vim.api.nvim_create_autocmd({ "CursorHold" }, {
callback = function()
vim.diagnostic.open_float()
end,
})
-- vim.api.nvim_create_autocmd({ "CursorHold" }, {
-- callback = function()
-- vim.diagnostic.open_float()
-- end,
-- })

-- set up diagnostic signs
for name, icon in pairs(require("user.icons").diagnostics) do
Expand Down

0 comments on commit b3537df

Please sign in to comment.