Fixed a long standing bug where <leader>fm didnt format python files correctly
This commit is contained in:
@@ -4,7 +4,7 @@ local options = {
|
||||
-- css = { "prettier" },
|
||||
-- html = { "prettier" },
|
||||
-- python = { "isort", "black" },
|
||||
python = { "ruff" },
|
||||
python = { "isort", "ruff_fix", "ruff_format" },
|
||||
yaml = { "prettier" },
|
||||
},
|
||||
|
||||
|
||||
@@ -33,7 +33,6 @@ lspconfig.ruff.setup({
|
||||
ignore = {"F401", "W191"},
|
||||
preview = true,
|
||||
}
|
||||
-- Ruff language server settings go here
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user