neovim: refac formatoptions

This commit is contained in:
Dmitriy Pleshevskiy 2024-06-16 05:35:09 +03:00
parent 869afe4b3a
commit 4ef5f14b30
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -25,13 +25,13 @@ in
vim.opt = {
list = true;
formatoptions = "tcroqwanljp";
formatoptions = "croqanlj";
};
buffer.filetype = {
python-options = {
pattern = [ "python" ];
opt = { formatoptions = "croqwaljp"; } // mkLineLimiterOpts 90;
text-options = {
pattern = [ "txt" "markdown" "mail" "man" ];
opt = { formatoptions = "tcroqwanjp"; };
};
} // lib.listToAttrs [
(mkLineLimiterGroup {
@ -45,6 +45,12 @@ in
"haskell"
];
})
(mkLineLimiterGroup {
limit = 90;
pattern = [
"python"
];
})
(mkLineLimiterGroup {
limit = 80;
pattern = [