1

Refresh generated neovim config

This commit is contained in:
2024-07-14 21:12:36 +02:00
parent f215ce2ab5
commit 00464e0e65
731 changed files with 6780 additions and 31110 deletions

View File

@ -454,7 +454,7 @@ list.dtd = {
list.earthfile = {
install_info = {
url = "https://github.com/glehmann/tree-sitter-earthfile",
files = { "src/parser.c", "src/scanner.c" },
files = { "src/parser.c" },
},
maintainers = { "@glehmann" },
}
@ -1699,6 +1699,14 @@ list.racket = {
},
}
list.ralph = {
install_info = {
url = "https://github.com/alephium/tree-sitter-ralph",
files = { "src/parser.c" },
},
maintainers = { "@tdroxler" },
}
list.rasi = {
install_info = {
url = "https://github.com/Fymyte/tree-sitter-rasi",
@ -1774,7 +1782,7 @@ list.robot = {
list.roc = {
install_info = {
url = "https://github.com/nat-418/tree-sitter-roc",
url = "https://github.com/faldor20/tree-sitter-roc",
files = { "src/parser.c", "src/scanner.c" },
},
maintainers = { "@nat-418" },

View File

@ -124,7 +124,7 @@ end, true)
---@param _bufnr integer
---@param pred string[]
---@return boolean|nil
query.add_predicate("has-type?", function(match, _pattern, _bufnr, pred)
query.add_predicate("kind-eq?", function(match, _pattern, _bufnr, pred)
if not valid_args(pred[1], pred, 2) then
return
end

View File

@ -397,6 +397,7 @@ function M.swap_nodes(node_or_range1, node_or_range2, bufnr, cursor_to_second)
local edit1 = { range = range1, newText = table.concat(text2, "\n") }
local edit2 = { range = range2, newText = table.concat(text1, "\n") }
bufnr = bufnr == 0 and vim.api.nvim_get_current_buf() or bufnr
vim.lsp.util.apply_text_edits({ edit1, edit2 }, bufnr, "utf-8")
if cursor_to_second then