diff options
| author | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2023-02-24 03:54:38 +0100 |
|---|---|---|
| committer | Aleksa Vuckovic <aleksa@vuckovic.cc> | 2023-02-24 03:54:38 +0100 |
| commit | bbe5d2d967a1a77328c71e11823bb57d56ee044c (patch) | |
| tree | 1ad4f5ed0ecfd9bce0cc497a0be59ea9cad094fd /lua/user/lsp/mason.lua | |
| parent | 0703660d49f22376d52a969e8c3cca64480b0f1b (diff) | |
formatting
Diffstat (limited to 'lua/user/lsp/mason.lua')
| -rw-r--r-- | lua/user/lsp/mason.lua | 32 |
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() |
