refactor(nvim): improved handling of kanagawa compile

This commit is contained in:
Price Hiller 2023-03-04 23:23:20 -06:00
parent 167e1e59e8
commit 0c77aed4ab
No known key found for this signature in database

View File

@ -57,11 +57,17 @@ lazy.setup({
}, },
{ {
"rebelot/kanagawa.nvim", "rebelot/kanagawa.nvim",
build = "KanagawaCompile",
config = function() config = function()
require("plugins.configs.kanagawa") require("plugins.configs.kanagawa")
vim.cmd.colorscheme("kanagawa") vim.cmd.colorscheme("kanagawa")
vim.api.nvim_create_autocmd("BufWritePost", {
pattern = "lua/plugins/configs/kanagawa.lua",
callback = function()
vim.schedule(vim.cmd.KanagawaCompile) vim.schedule(vim.cmd.KanagawaCompile)
end, end,
})
end,
}, },
-- Icons for folders, files, etc. -- Icons for folders, files, etc.