small changes
This commit is contained in:
@@ -32,6 +32,16 @@ return {
|
||||
end,
|
||||
})
|
||||
|
||||
-- Nix files use spaces (2) to match alejandra formatter
|
||||
vim.api.nvim_create_autocmd("FileType", {
|
||||
pattern = "nix",
|
||||
callback = function()
|
||||
vim.bo.expandtab = true
|
||||
vim.bo.shiftwidth = 2
|
||||
vim.bo.tabstop = 2
|
||||
end,
|
||||
})
|
||||
|
||||
vim.api.nvim_create_user_command("Format", function(args)
|
||||
local range = nil
|
||||
if args.count ~= -1 then
|
||||
|
||||
Reference in New Issue
Block a user