Skip to content

Commit

Permalink
nvim: Reset gopls diagnostic trigger to its default
Browse files Browse the repository at this point in the history
go.nvim sets the trigger to 'Save' by default due to some seemingly
broken logic[1]. This prevents diagnostics from being refreshed on
InsertLeave as intended by Neovim (:h vim.diagnostic.Opts).

[1]: ray-x/go.nvim#515
  • Loading branch information
antoineco committed Oct 14, 2024
1 parent b1c6a54 commit 63cecba
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ require "lazy".setup({
compositeLiteralFields = true,
constantValues = true,
functionTypeParameters = true
}
},
diagnosticsDelay = "1s",
diagnosticsTrigger = "Edit"
}
}
},
Expand Down

0 comments on commit 63cecba

Please sign in to comment.