From bbe5d2d967a1a77328c71e11823bb57d56ee044c Mon Sep 17 00:00:00 2001 From: Aleksa Vuckovic Date: Fri, 24 Feb 2023 03:54:38 +0100 Subject: formatting --- lua/user/lsp/mason.lua | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'lua/user/lsp/mason.lua') 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() -- cgit v1.2.3