Fixed a long standing bug where <leader>fm didnt format python files correctly

This commit is contained in:
salomaestro
2025-02-22 01:22:59 +01:00
parent 92840f428e
commit f89e212da7
3 changed files with 2 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ local options = {
-- css = { "prettier" },
-- html = { "prettier" },
-- python = { "isort", "black" },
python = { "ruff" },
python = { "isort", "ruff_fix", "ruff_format" },
yaml = { "prettier" },
},

View File

@@ -33,7 +33,6 @@ lspconfig.ruff.setup({
ignore = {"F401", "W191"},
preview = true,
}
-- Ruff language server settings go here
}
}
})

View File

@@ -4,6 +4,7 @@ vim.o.cursorlineopt ='both' -- to enable cursorline!
vim.o.scrolloff = 10
vim.opt.relativenumber = true
vim.g.wiki_root = "~/wiki"
vim.o.formatexpr = "v:lua.require'conform'.formatexpr()"
local highlight_group = vim.api.nvim_create_augroup("yankhighlight", { clear = true })
vim.api.nvim_create_autocmd("textyankpost", {