kjuulh
d80976a36b
Add .config/nvim/README.md Add .config/nvim/.gitignore Add .config/nvim/.neoconf.json Add .config/nvim/init.lua Add .config/nvim/lazy-lock.json Add .config/nvim/lua/config/autocmds.lua Add .config/nvim/lua/config/keymaps.lua Add .config/nvim/lua/config/lazy.lua Add .config/nvim/lua/config/options.lua Add .config/nvim/lua/plugins/catppuccin.lua Add .config/nvim/lua/plugins/copilot-cmp.lua Add .config/nvim/lua/plugins/copilot.lua Add .config/nvim/lua/plugins/core.lua Add .config/nvim/lua/plugins/crates.lua Add .config/nvim/lua/plugins/example.lua Add .config/nvim/lua/plugins/lspconfig.lua Add .config/nvim/lua/plugins/neoconf.lua Add .config/nvim/lua/plugins/neorg.lua Add .config/nvim/lua/plugins/noice.lua Add .config/nvim/lua/plugins/null-ls.lua Add .config/nvim/lua/plugins/nvim-cmp.lua Add .config/nvim/lua/plugins/nvim-dap.lua Add .config/nvim/lua/plugins/ranger.lua Add .config/nvim/lua/plugins/rust-tools.lua Add .config/nvim/lua/plugins/tmux.lua Add .config/nvim/lua/plugins/toggleterm.lua Add .config/nvim/lua/plugins/treesitter.lua Add .config/nvim/lua/plugins/vim-wordmotion.lua Add .config/nvim/lua/plugins/zen-mode.lua Add .config/nvim/neoconf.json Add .config/nvim/queries/hurl/highlights.scm Add .config/nvim/queries/hurl/injections.scm Add .config/nvim/stylua.toml Add .config/ranger/.keep Add .config/toot/config.json Add .config/zathura/.keep Add .config/zellij/config.kdl Update .zimrc
36 lines
853 B
Lua
36 lines
853 B
Lua
return {
|
|
"nvim-treesitter/nvim-treesitter",
|
|
opts = function(_, _)
|
|
local parser_config = require "nvim-treesitter.parsers".get_parser_configs()
|
|
|
|
|
|
-- https://github.com/nvim-treesitter/nvim-treesitter/tree/master#adding-parsers
|
|
parser_config.hurl = {
|
|
install_info = {
|
|
url = "~/git/github.com/kjuulh/tree-sitter-hurl",
|
|
files = { "src/parser.c" },
|
|
branch = "main",
|
|
generate_requires_npm = false,
|
|
requires_generate_from_grammar = false,
|
|
},
|
|
filetype = "hurl",
|
|
}
|
|
|
|
|
|
vim.treesitter.language.register('xml', 'html')
|
|
vim.filetype.add({
|
|
extension = {
|
|
xml = "html"
|
|
}
|
|
})
|
|
|
|
-- https://neovim.io/doc/user/lua.html#vim.filetype.add()
|
|
-- Search for vim.filetype.add
|
|
vim.filetype.add({
|
|
extension = {
|
|
hurl = "hurl"
|
|
}
|
|
})
|
|
end
|
|
}
|