added commentstring

This commit is contained in:
William Ball 2024-11-20 22:25:58 -08:00
parent 52858bbcc7
commit 70c857417a

View file

@ -5,16 +5,18 @@ function M.setup(opts)
extension = { pg = 'perga' }
})
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
vim.opt.commentstring = '-- %s'
local parser_config = require 'nvim-treesitter.parsers'.get_parser_configs()
parser_config.perga = {
install_info = {
url = "https://forgejo.ballcloud.cc/wball/tree-sitter-perga",
files = {"src/parser.c"},
branch = "main",
url = 'https://forgejo.ballcloud.cc/wball/tree-sitter-perga',
files = {'src/parser.c'},
branch = 'main',
generate_requires_npm = false,
requires_generate_from_grammar = false,
},
filetype = "pg",
filetype = 'pg',
}
end