neovim(nvim-tree): Highlight default.nix

This commit is contained in:
Donovan Glover 2023-06-16 12:53:18 -04:00
parent 338bf19784
commit ce727de65b
No known key found for this signature in database
GPG Key ID: EA7408A77AE1BE65

View File

@ -134,7 +134,11 @@ in
plugin = nvim-tree-lua;
type = "lua";
config = /* lua */ ''
require("nvim-tree").setup()
require("nvim-tree").setup({
renderer = {
special_files = { "Cargo.toml", "default.nix", "Makefile", "README.md", "readme.md" }
}
})
vim.api.nvim_create_autocmd({"QuitPre"}, {
callback = function() vim.cmd("NvimTreeClose") end