install binaries from mason.nvm & tsparsers automatically after installed

This commit is contained in:
krolyxon 2023-01-07 16:01:37 +05:30
parent 4d73e5ec0d
commit 4745d25f86
2 changed files with 13 additions and 4 deletions

View File

@ -15,6 +15,15 @@ if fn.empty(fn.glob(install_path)) > 0 then
vim.cmd "packadd packer.nvim" vim.cmd "packadd packer.nvim"
require "plugins" require "plugins"
vim.cmd "PackerSync" 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 end
local modules = { local modules = {

View File

@ -134,10 +134,10 @@ lspconfig.sumneko_lua.setup {
-- } -- }
-- --
-- for _, lsp in ipairs(servers) do -- for _, lsp in ipairs(servers) do
-- lspconfig[lsp].setup { -- lspconfig[lsp].setup {
-- on_attach = M.on_attach, -- on_attach = M.on_attach,
-- capabilities = M.capabilities, -- capabilities = M.capabilities,
-- } -- }
-- end -- end
return M return M