diff --git a/lua/my_lspinstall.lua b/lua/my_lspinstall.lua index 7908009..23512e6 100644 --- a/lua/my_lspinstall.lua +++ b/lua/my_lspinstall.lua @@ -49,6 +49,7 @@ local on_attach = function(client, bufnr) -- Symbols Outline buf_set_keymap('n', 's', 'SymbolsOutline', opts) + vim.cmd [[autocmd CursorHold lua vim.diagnostic.open_float({focusable = false})]] -- Set some keybinds conditional on server capabilities if client.resolved_capabilities.document_formatting then @@ -62,7 +63,6 @@ local on_attach = function(client, bufnr) if client.resolved_capabilities.document_highlight then vim.api.nvim_exec([[ hi LspReferenceRead cterm=bold ctermbg=red guibg=DarkGreen - hi LspReferenceText cterm=bold ctermbg=Black guibg=DarkYellow guifg=Black hi LspReferenceWrite cterm=bold ctermbg=red guibg=DarkRed augroup lsp_document_highlight autocmd! *