diff options
author | jakobst1n <jakob.stendahl@outlook.com> | 2024-04-26 20:57:53 +0200 |
---|---|---|
committer | jakobst1n <jakob.stendahl@outlook.com> | 2024-04-27 13:35:37 +0200 |
commit | 1d99ee5817a962643378f4049bb3d1fbc025bf65 (patch) | |
tree | 75afb5b4ff4cd3d351ebba2ddc2cbd74c942fbe6 /Common/nvim/lua/lsp-conf.lua | |
parent | 6aa68a6c85788defa42c6fc03fdd5b2dcc1b1b48 (diff) | |
download | dotfiles-1d99ee5817a962643378f4049bb3d1fbc025bf65.tar.gz dotfiles-1d99ee5817a962643378f4049bb3d1fbc025bf65.zip |
Simplify neovim
Diffstat (limited to 'Common/nvim/lua/lsp-conf.lua')
-rw-r--r-- | Common/nvim/lua/lsp-conf.lua | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/Common/nvim/lua/lsp-conf.lua b/Common/nvim/lua/lsp-conf.lua index bfcc3dd..0bb0a3e 100644 --- a/Common/nvim/lua/lsp-conf.lua +++ b/Common/nvim/lua/lsp-conf.lua @@ -31,10 +31,10 @@ local sign = function(opts) }) end -sign({name = 'DiagnosticSignError', text = ''}) -sign({name = 'DiagnosticSignWarn', text = ''}) -sign({name = 'DiagnosticSignHint', text = ''}) -sign({name = 'DiagnosticSignInfo', text = ''}) +sign({name = 'DiagnosticSignError', text = '!'}) +sign({name = 'DiagnosticSignWarn', text = '!!'}) +sign({name = 'DiagnosticSignHint', text = '?'}) +sign({name = 'DiagnosticSignInfo', text = 'i'}) vim.diagnostic.config({ virtual_text = false, @@ -61,9 +61,11 @@ vim.opt.completeopt = {'menuone', 'noselect', 'noinsert'} vim.opt.shortmess = vim.opt.shortmess + { c = true} vim.api.nvim_set_option('updatetime', 300) -vim.cmd([[ -set signcolumn=yes -]]) +-- Enable signcolumn +vim.opt.signcolumn = 'yes' +-- Remove background in SignColumn, looks odd without this +vim.api.nvim_set_hl(0, "SignColumn", {link = "LineNr"}) + -- autocmd CursorHold * lua vim.diagnostic.open_float(nil, { focusable = false }) vim.keymap.set('n', '<leader>d', vim.diagnostic.open_float) |