From f7e480cd62e58e913bfb0a93f36f4dca026352e5 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 23 Jul 2024 19:53:55 +0300 Subject: refactor(neovim): renamed custom/configs -> custom/config --- .config/nvim/lua/custom/configs/mason.lua | 33 ------------------------------- 1 file changed, 33 deletions(-) delete mode 100644 .config/nvim/lua/custom/configs/mason.lua (limited to '.config/nvim/lua/custom/configs/mason.lua') diff --git a/.config/nvim/lua/custom/configs/mason.lua b/.config/nvim/lua/custom/configs/mason.lua deleted file mode 100644 index d7a537b..0000000 --- a/.config/nvim/lua/custom/configs/mason.lua +++ /dev/null @@ -1,33 +0,0 @@ --- NOTE: Not language servers but still make sure mason installs them -local ensure_installed = { - stylua = true, -- lua formatting -} -local servers = require('custom.configs.language-servers') - -require('mason').setup({ - ui = { - icons = { - package_installed = '✓', - package_pending = '➜', - package_uninstalled = '✗', - }, - }, -}) - -local servers_to_install = vim.tbl_filter(function(key) - local server = servers[key] - if type(server) == 'table' then - return true - else - return server - end -end, vim.tbl_keys(servers)) - -vim.list_extend(ensure_installed, servers_to_install) -require('mason-lspconfig').setup({ ensure_installed = servers_to_install }) - -require('mason-tool-installer').setup({ - ensure_installed = { - 'stylua', -- lua formatter - }, -}) -- cgit v1.3.1