diff options
Diffstat (limited to '.config/nvim/lua/custom/config/mason.lua')
| -rw-r--r-- | .config/nvim/lua/custom/config/mason.lua | 41 |
1 files changed, 0 insertions, 41 deletions
diff --git a/.config/nvim/lua/custom/config/mason.lua b/.config/nvim/lua/custom/config/mason.lua deleted file mode 100644 index 9d42879..0000000 --- a/.config/nvim/lua/custom/config/mason.lua +++ /dev/null @@ -1,41 +0,0 @@ --- NOTE: Not language servers but still make sure mason installs them -local ensure_installed = { - stylua = true, -- lua formatting - jdtls = true, -- java eclipse lsp -} -local servers = require('custom.config.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 - 'java-debug-adapter', - 'java-test', - }, -}) - --- NOTE: apparently needed due to some issue or smthing? -vim.api.nvim_command('MasonToolsInstall') - - |
