diff options
author | Squibid <me@zacharyscheiman.com> | 2023-10-22 18:05:10 -0400 |
---|---|---|
committer | Squibid <me@zacharyscheiman.com> | 2023-10-22 18:05:10 -0400 |
commit | 87aafcd44cfa7ddccd5349d9eb2fb415d2ad6f8b (patch) | |
tree | cc12b2ccba1d5a605f6bc5e4fc254595bf8d8101 /after/plugin | |
parent | 590f0309995a569954fc94b1d5df6b6391ead9fa (diff) | |
download | nvim-87aafcd44cfa7ddccd5349d9eb2fb415d2ad6f8b.tar.gz nvim-87aafcd44cfa7ddccd5349d9eb2fb415d2ad6f8b.tar.bz2 nvim-87aafcd44cfa7ddccd5349d9eb2fb415d2ad6f8b.zip |
remove floating diagnostics, and add line diagnostics
Diffstat (limited to '')
-rw-r--r-- | after/plugin/lsp.lua | 10 | ||||
-rw-r--r-- | after/plugin/lsplines.lua | 13 |
2 files changed, 13 insertions, 10 deletions
diff --git a/after/plugin/lsp.lua b/after/plugin/lsp.lua index 11a77a9..9eab3f1 100644 --- a/after/plugin/lsp.lua +++ b/after/plugin/lsp.lua @@ -21,7 +21,6 @@ local function lsp_keymaps(bufnr) map('n', '<F4>', '<cmd>lua vim.lsp.buf.code_action()<cr>') -- Diagnostics - map('n', '<Tab>', '<cmd>lua vim.diagnostic.open_float()<cr>') map('n', '[d', '<cmd>lua vim.diagnostic.goto_prev()<cr>') map('n', ']d', '<cmd>lua vim.diagnostic.goto_next()<cr>') end @@ -41,15 +40,6 @@ local function lsp_settings() update_in_insert = false, underline = true, severity_sort = true, - float = { - focusable = false, - show_header = true, - style = 'minimal', - border = 'shadow', - source = 'always', - header = '', - prefix = '* ', - }, }) vim.lsp.handlers['textDocument/hover'] = vim.lsp.with( vim.lsp.handlers.hover, diff --git a/after/plugin/lsplines.lua b/after/plugin/lsplines.lua new file mode 100644 index 0000000..dcda047 --- /dev/null +++ b/after/plugin/lsplines.lua @@ -0,0 +1,13 @@ +local status_ok, lines = pcall(require, "lsp_lines") +if not status_ok then + return +end + +lines.setup {} + +vim.diagnostic.config { + virtual_lines = { + highlight_whole_line = true, + only_current_line = true + } +} |