mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-01 16:45:55 +00:00
filetype no work
This commit is contained in:
parent
535d58afba
commit
8d8f9dd794
3 changed files with 7 additions and 7 deletions
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -208,7 +208,7 @@ in {
|
|||
})
|
||||
|
||||
(setLanguageIndent {
|
||||
language = "md";
|
||||
language = "markdown";
|
||||
indentSize = 4;
|
||||
})
|
||||
|
||||
|
|
|
|||
|
|
@ -112,7 +112,7 @@ in {
|
|||
indentSize = mkOption {
|
||||
description = "Sets the indent size in spaces for .nix files";
|
||||
type = int;
|
||||
default = 2;
|
||||
default = 10;
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue