Compare commits

...

2 commits

Author SHA1 Message Date
cb2a769861 chore: update flake.lock 2026-01-02 16:43:26 +01:00
d531dc3ac0 feat: setup alejandra as a formatter. 2026-01-02 16:43:21 +01:00
2 changed files with 9 additions and 2 deletions

View file

@ -1,6 +1,13 @@
vim.pack.add({
{ src = "https://github.com/stevearc/conform.nvim" },
})
require("conform").setup({
formatters_by_ft = {
nix = { "alejandra" },
},
})
vim.api.nvim_create_user_command("Format", function(args)
local range = nil
if args.count ~= -1 then

View file

@ -1,7 +1,7 @@
{
"plugins": {
"conform.nvim": {
"rev": "4b713b9da0061a54750bfed457e190459be28c7b",
"rev": "8314f4c9e205e7f30b62147069729f9a1227d8bf",
"src": "https://github.com/stevearc/conform.nvim"
},
"lazydev.nvim": {
@ -21,7 +21,7 @@
"src": "https://github.com/nvim-mini/mini.nvim"
},
"nvim-lspconfig": {
"rev": "41ceb6bba3a40128b7841f5b7f5a9dae7201e823",
"rev": "ac04ec3c2af08e9821b4eb64ede86072b9b213bf",
"src": "https://github.com/neovim/nvim-lspconfig"
},
"nvim-treesitter": {