diff options
| Commit | bb7409d3bfb8d1b40fe33d1da8975dae749b5993 (patch) | |
|---|---|---|
| Author | 2024-03-24 11:02:31 +0200 | |
| Committer | 2024-03-24 11:02:31 +0200 | |
| Files | 2aa7aa764dd18738a18d736d833144ea955d79cc /lua | |
| anderson-bb7409d3bfb8d1b40fe33d1da8975dae749b5993.tar anderson-bb7409d3bfb8d1b40fe33d1da8975dae749b5993.tar.gz anderson-bb7409d3bfb8d1b40fe33d1da8975dae749b5993.zip | ||
| Parent | f5505f05b68892ffead4f05629c7a9b5b08ab5cc (diff) | |
[lsp] Replaced vritual_text messages with a floating window
1 files changed, 10 insertions, 0 deletions
| -rw-r--r-- | lua/lsp.lua | 10 |
diff --git a/lua/lsp.lua b/lua/lsp.lua index 7c9834f..e57022c 100644 --- a/lua/lsp.lua +++ b/lua/lsp.lua @@ -1 +1,11 @@ local lspconfig = require('lspconfig') + +-- Thanks https://stackoverflow.com/a/70760302/12036073 +vim.o.updatetime = 300 +vim.diagnostic.config({ + virtual_text = false, + float = { focus = false }, +}) +vim.api.nvim_create_autocmd({ "CursorHold", "CursorHoldI" }, { callback = function(ev) + vim.diagnostic.open_float(nil) +end}) |
