Skip to content

Commit 1b3abfa

Browse files
authored
docs(lsp): mention lsp/after/ in faq neovim#35534
1 parent c333d64 commit 1b3abfa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

runtime/doc/lsp.txt

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ order of increasing priority:
162162

163163
1. Configuration defined for the `'*'` name.
164164
2. Configuration from the result of merging all tables returned by
165-
`lsp/<name>.lua` files in 'runtimepath' for a server of name `name`.
165+
`lsp/<config>.lua` files in 'runtimepath' for the config named `<config>`.
166166
3. Configurations defined anywhere else.
167167

168168
Example: given the following configs... >lua
@@ -280,6 +280,12 @@ FAQ *lsp-faq*
280280
" (async = false is the default for format)
281281
autocmd BufWritePre *.rs lua vim.lsp.buf.format({ async = false })
282282
<
283+
284+
- Q: How to avoid my own lsp/ folder being overridden?
285+
- A: Place your configs under "after/lsp/". Files in "after/lsp/" are loaded
286+
after those in "nvim/lsp/", so your settings will take precedence over
287+
the defaults provided by nvim-lspconfig. See also: |after-directory|
288+
283289
*lsp-vs-treesitter*
284290
- Q: How do LSP, Treesitter and Ctags compare?
285291
- A: LSP requires a client and language server. The language server uses

0 commit comments

Comments
 (0)