Mercurial > dotfiles
changeset 719:08baa6419e7d
fix: pass vcs config to format-modifications attach function
author | zegervdv <zegervdv@me.com> |
---|---|
date | Tue, 06 Dec 2022 20:58:35 +0100 |
parents | 451632dcb1dd |
children | 6d036fac4dbd |
files | .chezmoitemplates/init.lua |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/.chezmoitemplates/init.lua Sat Dec 03 22:22:10 2022 +0100 +++ b/.chezmoitemplates/init.lua Tue Dec 06 20:58:35 2022 +0100 @@ -1142,7 +1142,7 @@ vim.notify('Enabled modification formatting via ' .. vcs .. ' using ' .. client.name, vim.log.levels.INFO) local lsp_format_modifications = require 'lsp-format-modifications' - lsp_format_modifications.attach(client, bufnr, { format_on_save = false, vcs = 'hg' }) + lsp_format_modifications.attach(client, bufnr, { format_on_save = false, vcs = vcs }) nmap('<c-p>', function() lsp_format_modifications.format_modifications_current_buffer() end) elseif client.supports_method 'textDocument/formatting' then nmap('<c-p>', function() lsp_formatting(0) end)