diff options
| author | William Boman <william@redwill.se> | 2025-04-26 12:36:00 +0200 |
|---|---|---|
| committer | William Boman <william@redwill.se> | 2025-04-26 12:40:45 +0200 |
| commit | ed0450967547665c421ce7dcde34e4601cac9349 (patch) | |
| tree | 72bdd3b873884afe876d28b78df442cb470bbf90 | |
| parent | feat: add more capabilities to `automatic_enable` (diff) | |
| download | mason-lspconfig-ed0450967547665c421ce7dcde34e4601cac9349.tar mason-lspconfig-ed0450967547665c421ce7dcde34e4601cac9349.tar.gz mason-lspconfig-ed0450967547665c421ce7dcde34e4601cac9349.tar.bz2 mason-lspconfig-ed0450967547665c421ce7dcde34e4601cac9349.tar.lz mason-lspconfig-ed0450967547665c421ce7dcde34e4601cac9349.tar.xz mason-lspconfig-ed0450967547665c421ce7dcde34e4601cac9349.tar.zst mason-lspconfig-ed0450967547665c421ce7dcde34e4601cac9349.zip | |
docs: clarify what enabling means
| -rw-r--r-- | README.md | 11 | ||||
| -rw-r--r-- | doc/mason-lspconfig.txt | 2 |
2 files changed, 9 insertions, 4 deletions
@@ -25,6 +25,7 @@ - [Requirements](#requirements) - [Installation](#installation) - [Setup](#setup) +- [Automatically enable installed servers](#automatically-enable-installed-servers) - [Commands](#commands) - [Configuration](#configuration) - [Default configuration](#default-configuration) @@ -35,7 +36,7 @@ This plugin's main responsibilities are to: -- allow you to (i) automatically install, and (ii) automatically enable installed servers +- allow you to (i) automatically install, and (ii) automatically enable (`vim.lsp.enable()`) installed servers - provide extra convenience APIs such as the `:LspInstall` command - provide additional LSP configurations for a few servers - translate between `nvim-lspconfig` server names and `mason.nvim` package names (e.g. `lua_ls <-> lua-language-server`) @@ -85,7 +86,7 @@ Refer to the [Configuration](#configuration) section for information about which # Automatically enable installed servers -`mason-lspconfig.nvim` will automatically enable installed servers for you by default. +`mason-lspconfig.nvim` will automatically enable (`vim.lsp.enable()`) installed servers for you by default. To disable this feature: @@ -103,7 +104,7 @@ require("mason-lspconfig").setup { exclude = { "rust_analyzer", "ts_ls" - } + } } } ``` @@ -119,6 +120,10 @@ require("mason-lspconfig").setup { } ``` +> [!NOTE] +> This will only enable servers that are installed via Mason. It will not recognize servers installed elsewhere on your +> system. + # Commands > `:h mason-lspconfig-commands` diff --git a/doc/mason-lspconfig.txt b/doc/mason-lspconfig.txt index f5b309f..ff139be 100644 --- a/doc/mason-lspconfig.txt +++ b/doc/mason-lspconfig.txt @@ -12,7 +12,7 @@ INTRODUCTION *mason-lspconfig-introduction* `nvim-lspconfig`. Its main responsibilities are to: - allow you to (i) automatically install, and (ii) automatically enable - installed servers + (`vim.lsp.enable()`) installed servers - provide extra convenience APIs such as the `:LspInstall` command - provide additional LSP configurations for a few servers - translate between `nvim-lspconfig` server names and `mason.nvim` package names |
