diff options
Diffstat (limited to 'nvim/lua/user/mason.lua')
-rw-r--r-- | nvim/lua/user/mason.lua | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/nvim/lua/user/mason.lua b/nvim/lua/user/mason.lua new file mode 100644 index 0000000..e211056 --- /dev/null +++ b/nvim/lua/user/mason.lua @@ -0,0 +1,36 @@ +local M = { + "williamboman/mason.nvim", + commit = "4546dec8b56bc56bc1d81e717e4a935bc7cd6477", + cmd = "Mason", + event = "BufReadPre", + dependencies = { + { + "williamboman/mason-lspconfig.nvim", + commit = "93e58e100f37ef4fb0f897deeed20599dae9d128", + lazy = true, + }, + }, +} + +local settings = { + ui = { + border = "none", + icons = { + package_installed = "◍", + package_pending = "◍", + package_uninstalled = "◍", + }, + }, + log_level = vim.log.levels.INFO, + max_concurrent_installers = 4, +} + +function M.config() + require("mason").setup(settings) + require("mason-lspconfig").setup { + ensure_installed = require("utils").servers, + automatic_installation = true, + } +end + +return M |