update: nvim: add satysfi tree-sitter

This commit is contained in:
qwjyh 2023-03-13 04:20:25 +09:00
parent a7c98c7cbb
commit 1ede90b7ec
2 changed files with 19 additions and 0 deletions

View file

@ -119,7 +119,22 @@ require('lualine_setup')
-----------------------------------------------------------
-- Treesitter
-- manually install parsers with `:TSInstall <language>`
-- satysfi (https://github.com/monaqa/tree-sitter-satysfi)
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.satysfi = {
install_info = {
url = "https://github.com/monaqa/tree-sitter-satysfi",
files = { "src/parser.c", "src/scanner.c" }
},
filetype = 'satysfi',
}
-- setup
require'nvim-treesitter.configs'.setup {
ensure_installed = {
'satysfi',
},
highlight = {
enable = true,
},