diff --git a/nvim/init.lua b/nvim/init.lua index 2d682d3..041c6f3 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -503,7 +503,7 @@ require("lazy").setup({ -- Highlight, edit, and navigate code "nvim-treesitter/nvim-treesitter", config = function() - pcall(require("nvim-treesitter.install").update({ with_sync = true })) + pcall(require("nvim-treesitter.install").update()) require("nvim-treesitter.configs").setup({ ensure_installed = { "c", "cpp", "lua", "vimdoc", "gitcommit", "git_rebase", "bash", "python" }, auto_install = true, @@ -591,29 +591,20 @@ require("lazy").setup({ log_level = vim.log.levels.DEBUG, filetype = { python = { - require("formatter.filetypes.python").black, - -- require("formatter.filetypes.python").pyment, function() return { - exe = "isort", - args = { "--quiet", "--profile black", "--force-single-line-import", "-" }, + exe = "ruff", + args = { "check", "--fix", "-" }, stdin = true, } end, function() return { - exe = "black", -- TODO move to ruff - args = { "--quiet", "-C", "--line-length", "100", "--target-version py312", "-" }, + exe = "ruff", + args = { "format", "-" }, stdin = true, } end, - function() - return { - exe = "blackdoc", - args = { "-q", "--line-length", "100", "-t py312" }, - stdin = false, - } - end, }, go = { require("formatter.filetypes.go").gofumpt, require("formatter.filetypes.go").golines }, lua = {