From 26887e2f33d3cacda7ee147895fefc4371c218a4 Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Sun, 9 Jun 2024 16:52:03 +0300 Subject: [PATCH] neovim: add specific options for python filetype - change limiter to 90 - remove t and n from formatoptions --- neovim/dev.nix | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) 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"