diff options
author | Thomas Voss <mail@thomasvoss.com> | 2023-09-28 03:53:24 +0200 |
---|---|---|
committer | Thomas Voss <mail@thomasvoss.com> | 2023-09-28 03:54:55 +0200 |
commit | 1024970410d98d342a0139a66b05d2fc5e4f35eb (patch) | |
tree | 4636f5877b63586f055e1aab03b75b0c0efa73c8 /.config/nvim/after/plugin/treesitter.lua | |
parent | 617a57a0bbf3784eb20fc2930ffaf46f2251b5a5 (diff) |
nvim: Add a tree-sitter parser for GSP
Diffstat (limited to '.config/nvim/after/plugin/treesitter.lua')
-rw-r--r-- | .config/nvim/after/plugin/treesitter.lua | 10 |
1 files changed, 10 insertions, 0 deletions
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', |