# HG changeset patch # User zegervdv # Date 1670866507 -3600 # Node ID 58fc7cc955d1c7b3ad5e70224c3b18b2c02ff42b # Parent b9c330fc7a796d1bd0ae661d059852e6fb1559cf feat: disable sumneko formatting diff -r b9c330fc7a79 -r 58fc7cc955d1 .chezmoitemplates/init.lua --- a/.chezmoitemplates/init.lua Sun Dec 11 21:41:01 2022 +0100 +++ b/.chezmoitemplates/init.lua Mon Dec 12 18:35:07 2022 +0100 @@ -1120,6 +1120,11 @@ vim.lsp.handlers['textDocument/hover'] = vim.lsp.with(vim.lsp.handlers.hover, { border = 'single' }) vim.lsp.handlers['textDocument/signatureHelp'] = vim.lsp.with(vim.lsp.handlers.hover, { border = 'single' }) + if client.name == 'sumneko_lua' then + client.server_capabilities.documentFormattingProvider = false + client.server_capabilities.documentRangeFormattingProvider = false + end + if client.supports_method 'textDocument/rangeFormatting' then local root = vim.fs.find({ '.git', '.hg' }, { path = client.config.root_dir }) local vcs = 'git'