Refresh generated neovim config
This commit is contained in:
@ -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" },
|
||||
|
||||
@ -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
|
||||
|
||||
@ -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
|
||||
|
||||
Reference in New Issue
Block a user