diff --git a/neovim/dev.nix b/neovim/dev.nix index 48ab5a2..91955f7 100644 --- a/neovim/dev.nix +++ b/neovim/dev.nix @@ -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"