From 4ef5f14b30a858eec13c426689428e075e7b857f Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sun, 16 Jun 2024 05:35:09 +0300 Subject: [PATCH] neovim: refac formatoptions --- neovim/dev.nix | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/neovim/dev.nix b/neovim/dev.nix index 3287cf1..c7986f6 100644 --- a/neovim/dev.nix +++ b/neovim/dev.nix @@ -25,13 +25,13 @@ in vim.opt = { list = true; - formatoptions = "tcroqwanljp"; + formatoptions = "croqanlj"; }; buffer.filetype = { - python-options = { - pattern = [ "python" ]; - opt = { formatoptions = "croqwaljp"; } // mkLineLimiterOpts 90; + text-options = { + pattern = [ "txt" "markdown" "mail" "man" ]; + opt = { formatoptions = "tcroqwanjp"; }; }; } // lib.listToAttrs [ (mkLineLimiterGroup { @@ -45,6 +45,12 @@ in "haskell" ]; }) + (mkLineLimiterGroup { + limit = 90; + pattern = [ + "python" + ]; + }) (mkLineLimiterGroup { limit = 80; pattern = [