From fc593aaaf8bfd82649b45cc0a53c971307c1d9ce Mon Sep 17 00:00:00 2001 From: Dmitriy Pleshevskiy Date: Fri, 17 May 2024 01:29:34 +0300 Subject: [PATCH] neovim: enable autoformat for some patterns --- flake.lock | 8 ++++---- neovim/dev.nix | 5 +++++ 2 files changed, 9 insertions(+), 4 deletions(-) diff --git a/flake.lock b/flake.lock index 6560049..dc7b13c 100644 --- a/flake.lock +++ b/flake.lock @@ -281,11 +281,11 @@ ] }, "locked": { - "lastModified": 1715897837, - "narHash": "sha256-l/6kgNBFr5zs/+TjgAErISfS5UYtWNiQ8P0EcX2bwCM=", + "lastModified": 1715898401, + "narHash": "sha256-w1nH/msvbX236EzcBCD4M3mWFQOgxNUGdqjD9XgLekc=", "ref": "refs/heads/main", - "rev": "b2fa93c305f666abd57c26eb70f07e60e8266fa5", - "revCount": 63, + "rev": "3bc846691213eb58b287576ce6b6622ea8592a92", + "revCount": 64, "type": "git", "url": "https://git.pleshevski.ru/pleshevskiy/nixeovim" }, diff --git a/neovim/dev.nix b/neovim/dev.nix index 5057c96..691a0b6 100644 --- a/neovim/dev.nix +++ b/neovim/dev.nix @@ -76,6 +76,11 @@ in }; }; + plugins.style.neoformat.autoformat = { + enable = true; + pattern = [ "*.ts" "*.tsx" "*.rs" "flake.nix" ]; + }; + plugins.navigation = { nvim-tree.settings = { renderer = {