mirror of
https://github.com/CompeyDev/my-nvim-setup.git
synced 2024-12-13 05:20:38 +00:00
install binaries from mason.nvm & tsparsers automatically after nvchad install
This commit is contained in:
parent
3df9c03eb5
commit
8a18f89b03
2 changed files with 10 additions and 1 deletions
9
init.lua
9
init.lua
|
@ -18,6 +18,15 @@ if fn.empty(fn.glob(install_path)) > 0 then
|
|||
vim.cmd "packadd packer.nvim"
|
||||
require "plugins"
|
||||
vim.cmd "PackerSync"
|
||||
|
||||
-- install binaries from mason.nvim & tsparsers
|
||||
vim.api.nvim_create_autocmd("User", {
|
||||
pattern = "PackerComplete",
|
||||
callback = function()
|
||||
vim.cmd "bw | silent! MasonInstallAll" -- close packer window
|
||||
require("packer").loader "nvim-treesitter"
|
||||
end,
|
||||
})
|
||||
end
|
||||
|
||||
pcall(require, "custom")
|
||||
|
|
|
@ -136,7 +136,7 @@ M.load_override = function(options_table, name)
|
|||
local plugin_configs, plugin_options = M.load_config().plugins, nil
|
||||
|
||||
-- support old plugin syntax for override
|
||||
local user_override = plugin_configs.user and plugin_configs.user.override and plugin_configs.user.override[name]
|
||||
local user_override = plugin_configs.override and plugin_configs.override[name]
|
||||
if user_override and type(user_override) == "table" then
|
||||
plugin_options = user_override
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue