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.