From 1024970410d98d342a0139a66b05d2fc5e4f35eb Mon Sep 17 00:00:00 2001 From: Thomas Voss Date: Thu, 28 Sep 2023 03:53:24 +0200 Subject: nvim: Add a tree-sitter parser for GSP --- .config/nvim/after/plugin/treesitter.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to '.config/nvim/after') diff --git a/.config/nvim/after/plugin/treesitter.lua b/.config/nvim/after/plugin/treesitter.lua index 77a3218..ce7f273 100644 --- a/.config/nvim/after/plugin/treesitter.lua +++ b/.config/nvim/after/plugin/treesitter.lua @@ -1,8 +1,18 @@ +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 { ensure_installed = { 'c', 'go', 'gomod', + 'gsp', 'html', 'lua', 'python', -- cgit v1.2.3