1
0
Fork 0
forked from foxora/nix

added formatter and format on save!!!

This commit is contained in:
foxora 2026-02-21 19:05:00 +00:00 committed by _cry64
parent 62b01c6294
commit 583cc19589
Signed by: cry
GPG key ID: F68745A836CA0412
14 changed files with 620 additions and 494 deletions

View file

@ -1,17 +1,17 @@
vim.api.nvim_create_autocmd("FileType", {
pattern = "lua",
callback = function()
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.expandtab = true
end,
pattern = "lua",
callback = function()
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.expandtab = true
end,
})
vim.api.nvim_create_autocmd("FileType", {
pattern = "nix",
callback = function()
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.expandtab = true
end,
pattern = "nix",
callback = function()
vim.opt_local.shiftwidth = 2
vim.opt_local.tabstop = 2
vim.opt_local.expandtab = true
end,
})