diff options
| author | William Boman <william@redwill.se> | 2021-10-17 23:00:00 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-10-17 23:00:00 +0200 |
| commit | f7e9007aa42a4f8ed88e51270b33dd2077365318 (patch) | |
| tree | d8629ca880d29d313440a984255974a55869ff37 /README.md | |
| parent | add vala_ls (#167) (diff) | |
| download | mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.tar mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.tar.gz mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.tar.bz2 mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.tar.lz mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.tar.xz mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.tar.zst mason-f7e9007aa42a4f8ed88e51270b33dd2077365318.zip | |
add setting for configuring server install dir (#166)
Diffstat (limited to 'README.md')
| -rw-r--r-- | README.md | 13 |
1 files changed, 12 insertions, 1 deletions
@@ -100,12 +100,18 @@ end ### Configuration You can configure certain behavior of nvim-lsp-installer by calling the `.settings()` function. + +Make sure to provide your settings before any other interactions with nvim-lsp-installer! + Refer to the [default configuration](#default-configuration) for all available settings. Example: ```lua -require("nvim-lsp-installer").settings { +local lsp_installer = require("nvim-lsp-installer") + +-- Provide settings first! +lsp_installer.settings { ui = { icons = { server_installed = "✓", @@ -114,6 +120,8 @@ require("nvim-lsp-installer").settings { } } } + +lsp_installer.on_server_ready(function (server) server:setup {} end) ``` ## Available LSPs @@ -228,6 +236,9 @@ local DEFAULT_SETTINGS = { }, }, + -- The directory in which to install all servers. + install_root_dir = path.concat { vim.fn.stdpath "data", "lsp_servers" }, + pip = { -- These args will be added to `pip install` calls. Note that setting extra args might impact intended behavior -- and is not recommended. |
