treesitter powered highlighting

This commit is contained in:
raf 2024-08-08 17:25:27 +03:00
parent 3e38d855c7
commit ad5e325dc4
Signed by: NotAShelf
GPG key ID: AF26552424E53993
2 changed files with 40 additions and 0 deletions

View file

@ -26,6 +26,7 @@ M.setup = function(user_config)
local config = vim.tbl_deep_extend("force", {
bin = "direnv",
autoload_direnv = false,
setFiletype = false,
keybindings = {
allow = "<Leader>da",
deny = "<Leader>dd",
@ -92,6 +93,12 @@ M.setup = function(user_config)
end,
})
end
if config.setFiletype then
vim.filetype.add({
filename = { [".envrc"] = "direnv" },
})
end
end
M.allow_direnv = function()

View file

@ -0,0 +1,33 @@
; inherits bash
[
"has"
"expand_path"
"dotenv"
"dotenv_if_exists"
"user_rel_path"
"find_up"
"source_env"
"source_env_if_exists"
"env_vars_required"
"source_up"
"source_up_if_exists"
"source_url"
"fetchurl"
"direnv_apply_dump"
"direnv_load"
"PATH_add"
"MANPATH_add"
"path_add"
"PATH_rm"
"load_prefix"
"semver_search"
"layout"
"use"
"rvm"
"watch_file"
"direnv_version"
"strict_env"
"unstrict_env"
"on_git_branch"
] @keyword