feat: tailor swiftie, and minor fixes

This commit is contained in:
davidon-top 2023-10-16 20:43:12 +02:00
parent 3fc4739c1b
commit 926ba239ce
5 changed files with 95 additions and 44 deletions

View file

@ -28,6 +28,17 @@ require"nvim-treesitter.configs".setup {
},
}
local treesitter_parser_config = require "nvim-treesitter.parsers".get_parser_configs()
treesitter_parser_config.templ = {
install_info = {
url = "https://github.com/vrischmann/tree-sitter-templ.git",
files = {"src/parser.c", "src/scanner.c"},
branch = "master",
},
}
vim.treesitter.language.register('templ', 'templ')
vim.wo.foldmethod = "manual"
vim.wo.foldexpr = "nvim_treesitter#foldexpr()"
vim.o.foldlevelstart = 99 -- do not close folds when a buffer is opened