feat: setup alejandra as a formatter.
This commit is contained in:
parent
475b794b98
commit
d531dc3ac0
1 changed files with 7 additions and 0 deletions
|
|
@ -1,6 +1,13 @@
|
||||||
vim.pack.add({
|
vim.pack.add({
|
||||||
{ src = "https://github.com/stevearc/conform.nvim" },
|
{ src = "https://github.com/stevearc/conform.nvim" },
|
||||||
})
|
})
|
||||||
|
|
||||||
|
require("conform").setup({
|
||||||
|
formatters_by_ft = {
|
||||||
|
nix = { "alejandra" },
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
vim.api.nvim_create_user_command("Format", function(args)
|
vim.api.nvim_create_user_command("Format", function(args)
|
||||||
local range = nil
|
local range = nil
|
||||||
if args.count ~= -1 then
|
if args.count ~= -1 then
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue