aboutsummaryrefslogtreecommitdiffstats
path: root/lua/nvim-lsp-installer/settings.lua
diff options
context:
space:
mode:
authorWilliam Boman <william@redwill.se>2021-10-10 19:20:16 +0200
committerGitHub <noreply@github.com>2021-10-10 19:20:16 +0200
commit5f54148153a878cc9cbe370adccda0f706251d89 (patch)
tree28ae0436232486323dfce3444e1d25657c34d75e /lua/nvim-lsp-installer/settings.lua
parentjdtls: fix jar argument (diff)
downloadmason-5f54148153a878cc9cbe370adccda0f706251d89.tar
mason-5f54148153a878cc9cbe370adccda0f706251d89.tar.gz
mason-5f54148153a878cc9cbe370adccda0f706251d89.tar.bz2
mason-5f54148153a878cc9cbe370adccda0f706251d89.tar.lz
mason-5f54148153a878cc9cbe370adccda0f706251d89.tar.xz
mason-5f54148153a878cc9cbe370adccda0f706251d89.tar.zst
mason-5f54148153a878cc9cbe370adccda0f706251d89.zip
add keybindings to UI window (#140)
- Allows for expanding servers to view more information about it. - Allows for installing/reinstalling/uninstalling servers. The default keybindings is an attempt to mimic vim-fugitive's :Git maps, and these can be overriden. The keybinding implementation in display.lua is a bit hacky, but it works and the "public" API is at least manageable. This will also open up for adding more metadata in the future, such as filetype information, currently installed version, latest available version, etc. Also there's Cowth Vader.
Diffstat (limited to 'lua/nvim-lsp-installer/settings.lua')
-rw-r--r--lua/nvim-lsp-installer/settings.lua14
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/nvim-lsp-installer/settings.lua b/lua/nvim-lsp-installer/settings.lua
index 1d7fa283..7a61510f 100644
--- a/lua/nvim-lsp-installer/settings.lua
+++ b/lua/nvim-lsp-installer/settings.lua
@@ -8,6 +8,16 @@ local DEFAULT_SETTINGS = {
-- The list icon to use for servers that are not installed.
server_uninstalled = "◍",
},
+ keymaps = {
+ -- Keymap to expand a server in the UI
+ toggle_server_expand = "<CR>",
+ -- Keymap to install a server
+ install_server = "i",
+ -- Keymap to reinstall/update a server
+ update_server = "u",
+ -- Keymap to uninstall a server
+ uninstall_server = "X",
+ },
},
-- Controls to which degree logs are written to the log file. It's useful to set this to vim.log.levels.DEBUG when
@@ -19,6 +29,10 @@ local DEFAULT_SETTINGS = {
-- example, installing `cssls` will also install both `jsonls` and `html` (and the other ways around), as these all
-- share the same underlying package.
allow_federated_servers = true,
+
+ -- Limit for the maximum amount of servers to be installed at the same time. Once this limit is reached, any further
+ -- servers that are requested to be installed will be put in a queue.
+ max_concurrent_installers = 4,
}
local M = {}