summaryrefslogtreecommitdiffstats
path: root/lua/conf/plugins/mason.lua
blob: 78742e99a8a41a64b9246eb686fb5995bbe5b856 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
return { "williamboman/mason.nvim",
  disable = not vim.fn.has("nvim-0.7.0"),
  function()
    local mason = require("mason")

    mason.setup {
      ui = {
        border = vim.g.border_style,
        width = 0.8,
        height = 0.9,

        icons = {
          package_installed = "+",
          package_pending = "?",
          package_uninstalled = "x"
        }
      },
      keymaps = {
        toggle_package_expand = "<CR>",
        install_package = "i",
        update_package = "u",
        check_package_version = "c",
        update_all_packages = "U",
        check_outdated_packages = "C",
        uninstall_package = "r",
        cancel_installation = "<C-c>",
        apply_language_filter = "<C-f>"
      }
    }
  end
}