chore(nvim): Add more lang to treesitter
This commit is contained in:
parent
d2283fd2a5
commit
13467edd9d
2 changed files with 20 additions and 1 deletions
|
@ -3,7 +3,12 @@ return {
|
|||
"nvim-treesitter/nvim-treesitter",
|
||||
opts = {
|
||||
ensure_installed = {
|
||||
"c",
|
||||
"fluent",
|
||||
"python",
|
||||
"go",
|
||||
"gsp",
|
||||
"json5",
|
||||
},
|
||||
|
||||
highlight = {
|
||||
|
@ -20,6 +25,13 @@ return {
|
|||
},
|
||||
filetype = "gsp",
|
||||
}
|
||||
config.fluent = {
|
||||
install_info = {
|
||||
url = "https://github.com/projectfluent/tree-sitter-fluent", -- local path or git repo
|
||||
files = {"src/parser.c"}, -- note that some parsers also require src/scanner.c or src/scanner.cc
|
||||
},
|
||||
filetype = "fluent", -- if filetype does not match the parser name
|
||||
}
|
||||
require("nvim-treesitter.configs").setup(opts)
|
||||
end
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue