diff --git a/homemanager/neovim/lua/plugins/spec/lsp.lua b/homemanager/neovim/lua/plugins/spec/lsp.lua index 89d72d0..a4c176f 100644 --- a/homemanager/neovim/lua/plugins/spec/lsp.lua +++ b/homemanager/neovim/lua/plugins/spec/lsp.lua @@ -35,7 +35,7 @@ local function keymap(args) -- autoformat - if client.supports_method('textDocument/formatting') then + if client:supports_method('textDocument/formatting') then vim.api.nvim_create_autocmd('BufWritePre', { group = vim.api.nvim_create_augroup('LspFormatting', { clear = true }), buffer = args.buf,