mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-06-21 16:39:06 +02:00
feat(lsp): allow overriding options for vim.lsp.buf.format. Fixes #51
This commit is contained in:
parent
688436c9af
commit
40d363cf3f
3 changed files with 20 additions and 2 deletions
|
@ -12,12 +12,20 @@ return {
|
|||
},
|
||||
---@class PluginLspOpts
|
||||
opts = {
|
||||
-- options for vim.diagnostic.config()
|
||||
diagnostics = {
|
||||
underline = true,
|
||||
update_in_insert = false,
|
||||
virtual_text = { spacing = 4, prefix = "●" },
|
||||
severity_sort = true,
|
||||
},
|
||||
-- options for vim.lsp.buf.format
|
||||
-- `bufnr` and `filter` is handled by the LazyVim formatter,
|
||||
-- but can be also overriden when specified
|
||||
format = {
|
||||
formatting_options = nil,
|
||||
timeout = nil,
|
||||
},
|
||||
---@type lspconfig.options
|
||||
servers = {
|
||||
jsonls = {},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue