neovim: add specific options for python filetype
- change limiter to 90 - remove t and n from formatoptions
This commit is contained in:
parent
b9fe063b50
commit
26887e2f33
1 changed files with 6 additions and 2 deletions
|
@ -28,7 +28,12 @@ in
|
||||||
formatoptions = "tcroqwanljp";
|
formatoptions = "tcroqwanljp";
|
||||||
};
|
};
|
||||||
|
|
||||||
buffer.filetype = lib.listToAttrs [
|
buffer.filetype = {
|
||||||
|
python-options = {
|
||||||
|
pattern = [ "python" ];
|
||||||
|
opt = { formatoptions = "croqwaljp"; } // mkLineLimiterOpts 90;
|
||||||
|
};
|
||||||
|
} // lib.listToAttrs [
|
||||||
(mkLineLimiterGroup {
|
(mkLineLimiterGroup {
|
||||||
limit = 100;
|
limit = 100;
|
||||||
pattern = [
|
pattern = [
|
||||||
|
@ -42,7 +47,6 @@ in
|
||||||
(mkLineLimiterGroup {
|
(mkLineLimiterGroup {
|
||||||
limit = 80;
|
limit = 80;
|
||||||
pattern = [
|
pattern = [
|
||||||
"python"
|
|
||||||
"json"
|
"json"
|
||||||
"yaml"
|
"yaml"
|
||||||
"markdown"
|
"markdown"
|
||||||
|
|
Loading…
Reference in a new issue