mirror of
https://github.com/mitchell/dotfiles.git
synced 2026-04-23 16:00:11 +00:00
update: nvim pkgs and keybinds; enable tsx/jsx highlighting
This commit is contained in:
parent
6f79e6abe9
commit
ac3ae0076b
3 changed files with 11 additions and 5 deletions
|
|
@ -17,6 +17,10 @@ end, { noremap = true, silent = true, desc = "Search for Visual Selection" })
|
|||
-- LSP Diagnostic Mappings
|
||||
local diag_opts = { silent = true }
|
||||
map("n", "<leader>d", vim.diagnostic.open_float, diag_opts)
|
||||
map("n", "[d", vim.diagnostic.goto_prev, diag_opts)
|
||||
map("n", "]d", vim.diagnostic.goto_next, diag_opts)
|
||||
map("n", "[d", function()
|
||||
vim.diagnostic.jump({ count = 1 })
|
||||
end, diag_opts)
|
||||
map("n", "]d", function()
|
||||
vim.diagnostic.jump({ count = -1 })
|
||||
end, diag_opts)
|
||||
map("n", "<space>q", vim.diagnostic.setloclist, diag_opts)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue