From 32077b19df1d8895e051de1c4e323aeff6b084c9 Mon Sep 17 00:00:00 2001 From: Saumit Dinesan Date: Sat, 15 Jul 2023 13:45:03 +0530 Subject: nvim: Adding mason-nvim package manager and mason-lsp --- .config/nvim/lua/justsaumit/mason.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .config/nvim/lua/justsaumit/mason.lua (limited to '.config/nvim/lua/justsaumit/mason.lua') 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 = "", + install_server = "i", + update_server = "u", + check_server_version = "c", + update_all_servers = "U", + check_outdated_servers = "C", + uninstall_server = "X", + cancel_installation = "", + }, + }, + max_concurrent_installers = 10, +}) +require("mason-lspconfig").setup ({ + ensure_installed = { "lua_ls", "clangd", "pyright", "rust_analyzer" }, +}) -- cgit v1.2.3