Added base folke setup

This commit is contained in:
2022-10-09 22:40:29 +02:00
parent 1afab44385
commit efc511cbcf
32 changed files with 2292 additions and 60 deletions

28
lua/plugins/mason.lua Normal file
View File

@@ -0,0 +1,28 @@
local M = {
module = "mason",
}
M.tools = {
"stylua",
"selene",
}
function M.check()
local mr = require("mason-registry")
for _, tool in ipairs(M.tools) do
local p = mr.get_package(tool)
if not p:is_installed() then
p:install()
end
end
end
function M.config()
require("mason").setup()
M.check()
require("mason-lspconfig").setup({
automatic_installation = true,
})
end
return M