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";
|
||||
};
|
||||
|
||||
buffer.filetype = lib.listToAttrs [
|
||||
buffer.filetype = {
|
||||
python-options = {
|
||||
pattern = [ "python" ];
|
||||
opt = { formatoptions = "croqwaljp"; } // mkLineLimiterOpts 90;
|
||||
};
|
||||
} // lib.listToAttrs [
|
||||
(mkLineLimiterGroup {
|
||||
limit = 100;
|
||||
pattern = [
|
||||
|
@ -42,7 +47,6 @@ in
|
|||
(mkLineLimiterGroup {
|
||||
limit = 80;
|
||||
pattern = [
|
||||
"python"
|
||||
"json"
|
||||
"yaml"
|
||||
"markdown"
|
||||
|
|
Loading…
Reference in a new issue