removed deprecated function call
This commit is contained in:
@@ -35,7 +35,7 @@ local function keymap(args)
|
|||||||
|
|
||||||
-- autoformat
|
-- autoformat
|
||||||
|
|
||||||
if client.supports_method('textDocument/formatting') then
|
if client:supports_method('textDocument/formatting') then
|
||||||
vim.api.nvim_create_autocmd('BufWritePre', {
|
vim.api.nvim_create_autocmd('BufWritePre', {
|
||||||
group = vim.api.nvim_create_augroup('LspFormatting', { clear = true }),
|
group = vim.api.nvim_create_augroup('LspFormatting', { clear = true }),
|
||||||
buffer = args.buf,
|
buffer = args.buf,
|
||||||
|
|||||||
Reference in New Issue
Block a user