neovim: add specific options for python filetype

- change limiter to 90
- remove t and n from formatoptions
This commit is contained in:
Dmitriy Pleshevskiy 2024-06-09 16:52:03 +03:00
parent b9fe063b50
commit 26887e2f33
Signed by: pleshevskiy
GPG key ID: 17041163DA10A9A2

View file

@ -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"