mirror of
https://github.com/LazyVim/starter.git
synced 2026-07-22 12:31:04 +00:00
Custom line diagnostics
This commit is contained in:
parent
5b6412739b
commit
9dc1c72a31
1 changed files with 6 additions and 0 deletions
|
|
@ -55,6 +55,12 @@ return {
|
|||
end, opts)
|
||||
end
|
||||
|
||||
-- Custom Diagnostics Keymaps
|
||||
vim.keymap.set('n', '<leader>cd', vim.diagnostic.open_float, { desc = 'Line Diagnostics' })
|
||||
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Previous Diagnostic' })
|
||||
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Next Diagnostic' })
|
||||
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Set Loclist Diagnostics' })
|
||||
|
||||
-- Ruby LSP
|
||||
lspconfig.ruby_lsp.setup({
|
||||
cmd = { vim.fn.expand("~/.asdf/shims/ruby"), "-S", "ruby-lsp" },
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue