chore(nvim): Add more lang to treesitter
This commit is contained in:
parent
13467edd9d
commit
7356d51b6c
1 changed files with 12 additions and 1 deletions
|
@ -5,10 +5,15 @@ return {
|
||||||
ensure_installed = {
|
ensure_installed = {
|
||||||
"c",
|
"c",
|
||||||
"fluent",
|
"fluent",
|
||||||
"python",
|
|
||||||
"go",
|
"go",
|
||||||
"gsp",
|
"gsp",
|
||||||
|
"hyprlang",
|
||||||
"json5",
|
"json5",
|
||||||
|
"julia",
|
||||||
|
-- "latex",
|
||||||
|
"python",
|
||||||
|
"rust",
|
||||||
|
"sxhkdrc",
|
||||||
},
|
},
|
||||||
|
|
||||||
highlight = {
|
highlight = {
|
||||||
|
@ -32,6 +37,12 @@ return {
|
||||||
},
|
},
|
||||||
filetype = "fluent", -- if filetype does not match the parser name
|
filetype = "fluent", -- if filetype does not match the parser name
|
||||||
}
|
}
|
||||||
|
vim.filetype.add({
|
||||||
|
extension = { rasi = "rasi" },
|
||||||
|
pattern = {
|
||||||
|
[".*/hypr/.*%.conf"] = "hyprlang",
|
||||||
|
},
|
||||||
|
})
|
||||||
require("nvim-treesitter.configs").setup(opts)
|
require("nvim-treesitter.configs").setup(opts)
|
||||||
end
|
end
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue