tangled
alpha
login
or
join now
althaea.zone
/
candy
0
fork
atom
neovim
0
fork
atom
overview
issues
pulls
pipelines
update next diagnostic movement to use new api
marshmallow.tngl.sh
2 years ago
1d128790
891f6e2b
+6
-3
1 changed file
expand all
collapse all
unified
split
candy
lua
marshmallow
lsp.lua
+6
-3
candy/lua/marshmallow/lsp.lua
reviewed
···
6
6
vim.api.nvim_create_autocmd("LspAttach", {
7
7
group = group,
8
8
callback = function(ev)
9
9
-
local client = vim.lsp.get_client_by_id(ev.data.client_id)
10
9
local bufnr = ev.buf
11
10
12
11
vim.lsp.inlay_hint.enable(true, {
···
15
14
16
15
local opts = { noremap = true, silent = true }
17
16
vim.keymap.set("n", "E", vim.diagnostic.open_float, opts)
18
18
-
vim.keymap.set("n", "[d", vim.diagnostic.goto_prev, opts)
19
19
-
vim.keymap.set("n", "]d", vim.diagnostic.goto_next, opts)
17
17
+
vim.keymap.set("n", "[d", function()
18
18
+
vim.diagnostic.jump({ count = -1 })
19
19
+
end, opts)
20
20
+
vim.keymap.set("n", "]d", function()
21
21
+
vim.diagnostic.jump({ count = 1 })
22
22
+
end, opts)
20
23
vim.keymap.set(
21
24
"n",
22
25
"<space>q",