From a12ca1d09996abf37415c119be06c48b73067adf Mon Sep 17 00:00:00 2001 From: Josh Rahm Date: Fri, 20 Jan 2023 21:26:59 +0000 Subject: set numbers, always show signcolumn when an lsp is attached --- lua/lsp.lua | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'lua') 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 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({ -- cgit