diff options
author | Saumit Dinesan <justsaumit@protonmail.com> | 2023-07-15 13:45:03 +0530 |
---|---|---|
committer | Saumit Dinesan <justsaumit@protonmail.com> | 2023-07-15 13:45:03 +0530 |
commit | 32077b19df1d8895e051de1c4e323aeff6b084c9 (patch) | |
tree | 0d4910945a5399cbdafb96e060d49c3d2a09b7df /.config/nvim/lua/justsaumit/mason.lua | |
parent | 52264cfdf74e4b3d84b860d53250c866ac72f0a1 (diff) |
nvim: Adding mason-nvim package manager and mason-lsp
Diffstat (limited to '.config/nvim/lua/justsaumit/mason.lua')
-rw-r--r-- | .config/nvim/lua/justsaumit/mason.lua | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.config/nvim/lua/justsaumit/mason.lua b/.config/nvim/lua/justsaumit/mason.lua new file mode 100644 index 0000000..9698b00 --- /dev/null +++ b/.config/nvim/lua/justsaumit/mason.lua @@ -0,0 +1,27 @@ +require("mason").setup({ + options = { + ensure_installed = { "clangd", "clangd-format", "codelldb", "lua-language-server" }, -- not an option from mason.nvim + PATH = "skip" + }, + ui = { + icons = { + package_pending = " ", + package_installed = " ", + package_uninstalled = " ", + }, + keymaps = { + toggle_server_expand = "<CR>", + install_server = "i", + update_server = "u", + check_server_version = "c", + update_all_servers = "U", + check_outdated_servers = "C", + uninstall_server = "X", + cancel_installation = "<C-c>", + }, + }, + max_concurrent_installers = 10, +}) +require("mason-lspconfig").setup ({ + ensure_installed = { "lua_ls", "clangd", "pyright", "rust_analyzer" }, +}) |