chore: Added vimtex dependency
This commit is contained in:
parent
db6d23cc66
commit
63029f7597
31 changed files with 3052 additions and 0 deletions
49
.config/nvim/lua/plugins/configs/mason.lua
Normal file
49
.config/nvim/lua/plugins/configs/mason.lua
Normal file
|
@ -0,0 +1,49 @@
|
|||
local present, mason = pcall(require, "mason")
|
||||
|
||||
if not present then
|
||||
return
|
||||
end
|
||||
|
||||
vim.api.nvim_create_augroup("_mason", { clear = true })
|
||||
vim.api.nvim_create_autocmd("Filetype", {
|
||||
pattern = "mason",
|
||||
callback = function()
|
||||
require("base46").load_highlight "mason"
|
||||
end,
|
||||
group = "_mason",
|
||||
})
|
||||
|
||||
local options = {
|
||||
ensure_installed = { "lua-language-server" }, -- not an option from mason.nvim
|
||||
|
||||
PATH = "skip",
|
||||
|
||||
ui = {
|
||||
icons = {
|
||||
package_pending = " ",
|
||||
package_installed = " ",
|
||||
package_uninstalled = " ﮊ",
|
||||
},
|
||||
|
||||
keymaps = {
|
||||
toggle_server_expand = "<CR>",
|
||||
install_server = "i",
|
||||
update_server = "u",
|
||||
check_server_version = "c",
|
||||
update_all_servers = "U",
|
||||
check_outdated_servers = "C",
|
||||
uninstall_server = "X",
|
||||
cancel_installation = "<C-c>",
|
||||
},
|
||||
},
|
||||
|
||||
max_concurrent_installers = 10,
|
||||
}
|
||||
|
||||
options = require("core.utils").load_override(options, "williamboman/mason.nvim")
|
||||
|
||||
vim.api.nvim_create_user_command("MasonInstallAll", function()
|
||||
vim.cmd("MasonInstall " .. table.concat(options.ensure_installed, " "))
|
||||
end, {})
|
||||
|
||||
mason.setup(options)
|
Loading…
Add table
Add a link
Reference in a new issue