1
0
Fork 0
mirror of https://github.com/pnx/dotfiles synced 2026-06-16 03:14:55 +02:00

nvim/lua/user/plugins/editor/treesitter.lua: adding dotenv parser

This commit is contained in:
Henrik Hautakoski 2025-03-23 16:26:13 +01:00
parent 080c5418a8
commit 70ce2131d5

View file

@ -56,6 +56,21 @@ return {
filetype = "blade",
}
parser_config.dotenv = {
install_info = {
url = "https://github.com/pnx/tree-sitter-dotenv",
branch = "main",
files = { "src/parser.c", "src/scanner.c" },
},
filetype = "dotenv",
}
vim.filetype.add({
pattern = {
['.env.*'] = 'dotenv',
},
})
require("nvim-treesitter.configs").setup(opts)
end,
},