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"
|
||||
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
|
||||
|
||||
local modules = {
|
||||
|
|
|
|||
|
|
@ -134,10 +134,10 @@ lspconfig.sumneko_lua.setup {
|
|||
-- }
|
||||
--
|
||||
-- for _, lsp in ipairs(servers) do
|
||||
-- lspconfig[lsp].setup {
|
||||
-- on_attach = M.on_attach,
|
||||
-- capabilities = M.capabilities,
|
||||
-- }
|
||||
-- lspconfig[lsp].setup {
|
||||
-- on_attach = M.on_attach,
|
||||
-- capabilities = M.capabilities,
|
||||
-- }
|
||||
-- end
|
||||
|
||||
return M
|
||||
|
|
|
|||
Reference in New Issue