filetype no work

This commit is contained in:
mewoocat 2025-12-24 11:20:58 -06:00
commit 8d8f9dd794
3 changed files with 7 additions and 7 deletions

View file

@ -86,13 +86,13 @@ in {
vim.autocmds = [
{
desc = "Sets indent for nix files";
event = ["BufEnter"];
pattern = [ "*.${language}" ];
event = ["FileType"];
pattern = [ language ];
callback = mkLuaInline ''
function()
vim.opt.tabstop = ${toString indentSize}
vim.opt.softtabstop = ${toString indentSize}
vim.opt.shiftwidth = ${toString indentSize}
vim.bo.tabstop = ${toString indentSize}
vim.bo.softtabstop = ${toString indentSize}
vim.bo.shiftwidth = ${toString indentSize}
end
'';
once = true;

View file

@ -208,7 +208,7 @@ in {
})
(setLanguageIndent {
language = "md";
language = "markdown";
indentSize = 4;
})

View file

@ -112,7 +112,7 @@ in {
indentSize = mkOption {
description = "Sets the indent size in spaces for .nix files";
type = int;
default = 2;
default = 10;
};
};