Compare commits

...

2 commits

Author SHA1 Message Date
eb40e0ddb6
neovim: change textwidth in line-limiter
it should be less than colorcolumn by 1
2024-05-24 01:02:14 +03:00
40ff58434d
neovim: remove formatoptions 2024-05-24 01:00:19 +03:00

View file

@ -11,7 +11,7 @@ let
inherit pattern; inherit pattern;
opt = { opt = {
colorcolumn = toString limit; colorcolumn = toString limit;
textwidth = limit; textwidth = limit - 1;
}; };
}; };
in in
@ -23,12 +23,9 @@ in
vim.opt = { vim.opt = {
list = true; list = true;
formatexpr = "neoformat#Neoformat(0, '', v:lnum, v:lnum + v:count)";
}; };
buffer.filetype = { buffer.filetype = lib.listToAttrs [
nix.opt.formatexpr = "neoformat#Neoformat(0, '', 0, 99999)";
} // lib.listToAttrs [
(mkLineLimiterGroup { (mkLineLimiterGroup {
limit = 101; limit = 101;
pattern = [ pattern = [