install binaries from mason.nvm & tsparsers automatically after installed
This commit is contained in:
parent
4d73e5ec0d
commit
4745d25f86
9
init.lua
9
init.lua
|
|
@ -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 = {
|
||||||
|
|
|
||||||
|
|
@ -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
|
||||||
|
|
|
||||||
Reference in New Issue