From 3baaf19bf857d97b11000ea17ae8541dfd6ea8cd Mon Sep 17 00:00:00 2001 From: Noa Aarts Date: Wed, 13 Mar 2024 13:38:03 +0100 Subject: [PATCH] add python formatters --- common/nvim/init.lua | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/common/nvim/init.lua b/common/nvim/init.lua index 539509e..7896e4b 100644 --- a/common/nvim/init.lua +++ b/common/nvim/init.lua @@ -568,7 +568,7 @@ require("lazy").setup({ local servers = { clangd = {}, gopls = {}, - -- pyright = {}, + pyright = {}, rust_analyzer = {}, html = { filetypes = { "html", "twig", "hbs" } }, templ = { filetypes = { "templ" } }, @@ -624,6 +624,7 @@ require("lazy").setup({ local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { "stylua", -- Used to format lua code + "black", -- Used to format python code }) require("mason-tool-installer").setup({ ensure_installed = ensure_installed }) @@ -658,7 +659,7 @@ require("lazy").setup({ formatters_by_ft = { lua = { "stylua" }, -- Conform can also run multiple formatters sequentially - -- python = { "isort", "black" }, + python = { "black" }, -- -- You can use a sub-list to tell conform to run *until* a formatter -- is found.