mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-06-13 08:15:10 +00:00
lsp: fix deprecated diagnostic functions
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
Some checks are pending
Set up binary cache / cachix (default) (push) Waiting to run
Set up binary cache / cachix (maximal) (push) Waiting to run
Set up binary cache / cachix (nix) (push) Waiting to run
Treewide Checks / Validate flake (push) Waiting to run
Treewide Checks / Check formatting (push) Waiting to run
Treewide Checks / Check source tree for typos (push) Waiting to run
Treewide Checks / Validate documentation builds (push) Waiting to run
Treewide Checks / Validate documentation builds-1 (push) Waiting to run
Treewide Checks / Validate documentation builds-2 (push) Waiting to run
Treewide Checks / Validate documentation builds-3 (push) Waiting to run
Treewide Checks / Validate hyperlinks in documentation sources (push) Waiting to run
Treewide Checks / Validate Editorconfig conformance (push) Waiting to run
Build and deploy documentation / Check latest commit (push) Waiting to run
Build and deploy documentation / publish (push) Blocked by required conditions
This commit is contained in:
parent
6f6b34a0b9
commit
36c88a31f6
1 changed files with 28 additions and 2 deletions
|
|
@ -103,8 +103,34 @@ in {
|
|||
${mkBinding mappings.goToType "vim.lsp.buf.type_definition"}
|
||||
${mkBinding mappings.listImplementations "vim.lsp.buf.implementation"}
|
||||
${mkBinding mappings.listReferences "vim.lsp.buf.references"}
|
||||
${mkBinding mappings.nextDiagnostic "vim.diagnostic.goto_next"}
|
||||
${mkBinding mappings.previousDiagnostic "vim.diagnostic.goto_prev"}
|
||||
${mkBinding mappings.nextDiagnostic ''
|
||||
function()
|
||||
vim.diagnostic.jump({
|
||||
count = 1,
|
||||
on_jump = function(_, bufnr)
|
||||
vim.diagnostic.open_float({
|
||||
scope = "cursor",
|
||||
bufnr = bufnr,
|
||||
focus = false,
|
||||
})
|
||||
end,
|
||||
})
|
||||
end
|
||||
''}
|
||||
${mkBinding mappings.previousDiagnostic ''
|
||||
function()
|
||||
vim.diagnostic.jump({
|
||||
count = -1,
|
||||
on_jump = function(_, bufnr)
|
||||
vim.diagnostic.open_float({
|
||||
scope = "cursor",
|
||||
bufnr = bufnr,
|
||||
focus = false,
|
||||
})
|
||||
end,
|
||||
})
|
||||
end
|
||||
''}
|
||||
${mkBinding mappings.openDiagnosticFloat "vim.diagnostic.open_float"}
|
||||
${mkBinding mappings.documentHighlight "vim.lsp.buf.document_highlight"}
|
||||
${mkBinding mappings.listDocumentSymbols "vim.lsp.buf.document_symbol"}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue