aboutsummaryrefslogtreecommitdiff
path: root/lua/user/lsp/mason.lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua/user/lsp/mason.lua')
-rw-r--r--lua/user/lsp/mason.lua32
1 files changed, 16 insertions, 16 deletions
diff --git a/lua/user/lsp/mason.lua b/lua/user/lsp/mason.lua
index 1b5717d..2c14313 100644
--- a/lua/user/lsp/mason.lua
+++ b/lua/user/lsp/mason.lua
@@ -1,43 +1,43 @@
local status, mason = pcall(require, "mason")
if not status then
- return
+ return
end
-- mason
mason.setup({
- ui = {
- icons = {
- package_installed = "✓",
- package_pending = "➜",
- package_uninstalled = "✗"
- }
- }
+ ui = {
+ icons = {
+ package_installed = "✓",
+ package_pending = "➜",
+ package_uninstalled = "✗"
+ }
+ }
})
-- mason-lspconfig
require("mason-lspconfig").setup {
- ensure_installed = { "pylsp", "bashls", "lua_ls", "cmake" },
+ ensure_installed = { "pylsp", "bashls", "lua_ls", "cmake" },
}
require("mason-lspconfig").setup_handlers {
- function (server_name)
+ function(server_name)
require("lspconfig")[server_name].setup {}
end
}
-- mason-null-ls
require('mason-null-ls').setup({
- automatic_setup = true,
- ensure_installed = { "cpplint" }
+ automatic_setup = true,
+ ensure_installed = {}
})
require('mason-null-ls').setup_handlers {
- function(source_name, methods)
- require("mason-null-ls.automatic_setup")(source_name, methods)
- end,
+ function(source_name, methods)
+ require("mason-null-ls.automatic_setup")(source_name, methods)
+ end,
}
-- null_ls
local status, null_ls = pcall(require, "null-ls")
if not status then
- return
+ return
end
null_ls.setup()