feat: tailor swiftie, and minor fixes
This commit is contained in:
parent
3fc4739c1b
commit
926ba239ce
5 changed files with 95 additions and 44 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue