Skip to content

Commit

Permalink
feat(nvim): hurl tree-sitter
Browse files Browse the repository at this point in the history
  • Loading branch information
codepuncher committed Mar 18, 2024
1 parent 994e174 commit e9b92b0
Showing 1 changed file with 31 additions and 13 deletions.
44 changes: 31 additions & 13 deletions nvim/lua/plugins/configs/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,26 +35,44 @@ plugin.setup({
enable = true,
},
ensure_installed = {
'markdown',
'markdown_inline',
'tsx',
'toml',
'bash',
'php',
'css',
'go',
'html',
'hurl',
'javascript',
'typescript',
'jsdoc',
'json',
'regex',
'lua',
'go',
'yaml',
'html',
'markdown',
'markdown_inline',
'php',
'python',
'regex',
'scss',
'css',
'svelte',
'toml',
'tsx',
'typescript',
'vim',
'vue',
'svelte',
'python',
'yaml',
},
})

local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
parser_config.hurl = {
install_info = {
url = "~/Code/misc/tree-sitter-hurl", -- or your own path, i.e. where you cloned the repository
files = { "src/parser.c" },
branch = "main",
generate_requires_npm = false,
requires_generate_from_grammar = false,
},
filetype = "hurl",
}
vim.filetype.add({
extension = {
hurl = "hurl"
}
})

0 comments on commit e9b92b0

Please sign in to comment.