From 6bef8f32b19778fdfe52f0eb39719425508dcc7b Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Thu, 24 Apr 2025 11:36:39 +0300 Subject: Refactored nvim config to make it easier and less insanely nested --- .config/nvim/lua/plugins/mason.lua | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 .config/nvim/lua/plugins/mason.lua (limited to '.config/nvim/lua/plugins/mason.lua') diff --git a/.config/nvim/lua/plugins/mason.lua b/.config/nvim/lua/plugins/mason.lua new file mode 100644 index 0000000..9bbb01b --- /dev/null +++ b/.config/nvim/lua/plugins/mason.lua @@ -0,0 +1,38 @@ +return { + { + 'williamboman/mason.nvim', + lazy = false, + opts = { + ui = { + icons = { + package_installed = '✓', + package_pending = '➜', + package_uninstalled = '✗', + }, + }, + }, + }, + { + 'WhoIsSethDaniel/mason-tool-installer.nvim', + lazy = false, + opts = { + ensure_installed = { + 'stylua', -- lua formatting + 'clang-format', -- C/C++ formatter + 'codelldb', -- C/C++ debugger + 'cpplint', -- C/C++ linter + -- 'black', -- python formatter + -- 'isort', -- python formatter for imports + -- 'flake8', -- python linter + 'gofumpt', -- go formatter + 'golangci-lint', -- go linter + 'prettierd', -- multi-lang formatter + 'prettier', -- prettierd but slower, used as a fallback + 'jq', -- json formatter + 'jsonlint', -- json linter + 'shellcheck', -- bash linter + 'beautysh', -- shell formatter + }, + }, + }, +} -- cgit v1.3.1