diff options
| author | srdusr <trevorgray@srdusr.com> | 2023-02-13 16:28:29 +0200 |
|---|---|---|
| committer | srdusr <trevorgray@srdusr.com> | 2023-02-13 16:28:29 +0200 |
| commit | 53bab088cfb1ef4e60a08bbd9941d4d9fc5bcc5a (patch) | |
| tree | 89893e15afddf9bbb57553f7c3c9f5448737148a /lua | |
| parent | 5d49d0b18a34360e65b4910877fe5a8fee43a7be (diff) | |
| download | dotfiles-53bab088cfb1ef4e60a08bbd9941d4d9fc5bcc5a.tar.gz dotfiles-53bab088cfb1ef4e60a08bbd9941d4d9fc5bcc5a.zip | |
│Moved autocommand of "Toggle DiagnosticsOpenFloat" to from util.vim to lsp.lua
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/plugins/lsp.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 4bcfeea..c551b48 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -147,6 +147,14 @@ function _G.toggle_diagnostics() end end +-- Open float for diagnostics automatically +vim.cmd([[ +augroup OpenFloat + autocmd CursorHold,CursorHoldI * lua vim.diagnostic.open_float(nil, {focusable = false,}) + +augroup END +]]) + -- Suppress error messages from lang servers vim.lsp.set_log_level("debug") local capabilities = vim.lsp.protocol.make_client_capabilities() |
