From da4f4674a5510d430b33517f3deff46de0ab120d Mon Sep 17 00:00:00 2001 From: Oliver Hartmann Date: Mon, 28 Feb 2022 14:31:25 +0100 Subject: [PATCH] Some lsp fixes --- lua/my_lspinstall.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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! *