neovim: refac formatoptions
This commit is contained in:
parent
869afe4b3a
commit
4ef5f14b30
1 changed files with 10 additions and 4 deletions
|
@ -25,13 +25,13 @@ in
|
||||||
|
|
||||||
vim.opt = {
|
vim.opt = {
|
||||||
list = true;
|
list = true;
|
||||||
formatoptions = "tcroqwanljp";
|
formatoptions = "croqanlj";
|
||||||
};
|
};
|
||||||
|
|
||||||
buffer.filetype = {
|
buffer.filetype = {
|
||||||
python-options = {
|
text-options = {
|
||||||
pattern = [ "python" ];
|
pattern = [ "txt" "markdown" "mail" "man" ];
|
||||||
opt = { formatoptions = "croqwaljp"; } // mkLineLimiterOpts 90;
|
opt = { formatoptions = "tcroqwanjp"; };
|
||||||
};
|
};
|
||||||
} // lib.listToAttrs [
|
} // lib.listToAttrs [
|
||||||
(mkLineLimiterGroup {
|
(mkLineLimiterGroup {
|
||||||
|
@ -45,6 +45,12 @@ in
|
||||||
"haskell"
|
"haskell"
|
||||||
];
|
];
|
||||||
})
|
})
|
||||||
|
(mkLineLimiterGroup {
|
||||||
|
limit = 90;
|
||||||
|
pattern = [
|
||||||
|
"python"
|
||||||
|
];
|
||||||
|
})
|
||||||
(mkLineLimiterGroup {
|
(mkLineLimiterGroup {
|
||||||
limit = 80;
|
limit = 80;
|
||||||
pattern = [
|
pattern = [
|
||||||
|
|
Loading…
Reference in a new issue