diff --git a/dotfiles/.config/nvim/lua/lsp.lua b/dotfiles/.config/nvim/lua/lsp.lua index 85e4cd7..85f9e8f 100644 --- a/dotfiles/.config/nvim/lua/lsp.lua +++ b/dotfiles/.config/nvim/lua/lsp.lua @@ -12,7 +12,7 @@ local common_on_attach = function(client, bufnr) -- Autoformat on save. if client.supports_method("textDocument/formatting") then vim.api.nvim_create_autocmd("BufWritePre", { - buffer = bufnr, + pattern = '*.py,*.rs', callback = function() vim.lsp.buf.format() end,