summaryrefslogtreecommitdiff
path: root/lua/lsp.lua
diff options
context:
space:
mode:
authorJosh Rahm <rahm@google.com>2023-01-20 21:26:59 +0000
committerJosh Rahm <rahm@google.com>2023-01-20 21:26:59 +0000
commita12ca1d09996abf37415c119be06c48b73067adf (patch)
tree0876e3108ea84c90b14079d93b87268a26f22162 /lua/lsp.lua
parent457f12d1d01e3ebd640ec26b815013e845c58e7e (diff)
downloadconfig.vim-a12ca1d09996abf37415c119be06c48b73067adf.tar.gz
config.vim-a12ca1d09996abf37415c119be06c48b73067adf.tar.bz2
config.vim-a12ca1d09996abf37415c119be06c48b73067adf.zip
set numbers, always show signcolumn when an lsp is attached
Diffstat (limited to 'lua/lsp.lua')
-rw-r--r--lua/lsp.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/lua/lsp.lua b/lua/lsp.lua
index c443788..5ae7cde 100644
--- a/lua/lsp.lua
+++ b/lua/lsp.lua
@@ -174,6 +174,10 @@ M.on_attach = function(client, bufnr)
vim.api.nvim_command("autocmd CursorMoved <buffer> lua vim.lsp.util.buf_clear_references()")
end
vim.api.nvim_command("augroup END")
+
+ -- When an LSP is attached, we should just set the sign column to yes in order
+ -- to avoid the jarring behavior of it appearing and disappearing rapidly.
+ vim.opt_local.signcolumn = 'yes'
end
nvim_lsp.lualsp.setup({