Added plugin for better LSP diagnostics and keybound toggle

This commit is contained in:
dpearre 2024-10-17 14:22:56 -07:00
parent 5b265a342a
commit 3260d07bd1
1 changed files with 13 additions and 0 deletions

View File

@ -284,6 +284,12 @@ vim.opt.rtp:prepend(lazypath)
-- NOTE: Here is where you install your plugins. -- NOTE: Here is where you install your plugins.
require('lazy').setup({ require('lazy').setup({
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link). -- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
{
'ErichDonGubler/lsp_lines.nvim',
config = function()
require('lsp_lines').setup()
end,
},
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
'tpope/vim-fugitive', -- git integration 'tpope/vim-fugitive', -- git integration
'jpalardy/vim-slime', -- for piping code into external service like a REPL 'jpalardy/vim-slime', -- for piping code into external service like a REPL
@ -1182,6 +1188,13 @@ require('jupynium').setup {
}, },
} }
-- Disable virtual_text since it's redundant due to lsp_lines.
vim.diagnostic.config {
virtual_text = false,
}
vim.keymap.set('', '<Leader>l', require('lsp_lines').toggle, { desc = 'Toggle lsp_lines' })
-- You can link highlighting groups. -- You can link highlighting groups.
-- This is the default (when colour scheme is unknown) -- This is the default (when colour scheme is unknown)
-- Try with CursorColumn, Pmenu, Folded etc. -- Try with CursorColumn, Pmenu, Folded etc.