chore(nvim): Split plugins to their own file and lazyload commentary

This commit is contained in:
Ahmad Ansori Palembani 2024-04-18 09:48:03 +07:00
parent e4ad35f4a6
commit 6636abb02f
Signed by: null2264
GPG key ID: BA64F8B60AF3EFB6
3 changed files with 63 additions and 54 deletions

View file

@ -0,0 +1,30 @@
return {
{
"nvim-treesitter/nvim-treesitter",
opts = {
ensure_installed = {
"gsp",
},
highlight = {
enable = true,
additional_vim_regex_highlighting = false,
},
},
config = function (_, opts)
local config = require("nvim-treesitter.parsers").get_parser_configs()
config.gsp = {
install_info = {
url = "https://git.sr.ht/~mango/tree-sitter-gsp",
files = {"src/parser.c"},
},
filetype = "gsp",
}
require("nvim-treesitter.configs").setup(opts)
end
},
{
url = "https://git.sr.ht/~mango/tree-sitter-gsp",
fp = "gsp",
},
}