summaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to '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({