chore(nvim): Add more lang to treesitter

This commit is contained in:
Ahmad Ansori Palembani 2024-04-18 10:08:48 +07:00
parent d2283fd2a5
commit 13467edd9d
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
2 changed files with 20 additions and 1 deletions

View file

@ -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
},