plugins.lsp-format.enable
Whether to enable lsp-format.nvim.
Type: boolean
Default:
false
Example:
true
Declared by:
plugins.lsp-format.package
Which package to use for the lsp-format.nvim plugin.
Type: package
Default:
<derivation vimplugin-lsp-format.nvim-2024-04-03>
Declared by:
plugins.lsp-format.extraOptions
These attributes will be added to the table parameter for the setup function. Typically, it can override NixVim’s default settings.
Type: attribute set of anything
Default:
{ }
Declared by:
plugins.lsp-format.lspServersToEnable
Choose the LSP servers for which lsp-format should be enabled.
Possible values:
- “all” (default): Enable formatting for all language servers
- “none”: Do not enable formatting on any language server.
You might choose this if for some reason you want to manually call
require("lsp-format").on_attach(client)
in theonAttach
function of your language servers. - list of LS names: Manually choose the servers by name
Type: one of “none”, “all” or list of string
Default:
"all"
Example:
[
"efm"
"gopls"
]
Declared by: