From 2ea1c0810b21dce63d2d9f62798aa253baa59574 Mon Sep 17 00:00:00 2001 From: Daniel Kempkens Date: Wed, 4 Sep 2024 12:27:54 +0200 Subject: [PATCH] nvim: remove matchup --- .../nvim/after/queries/elixir/matchup.scm | 36 ------------------- home/config/nvim/plugins/matchup.fnl | 6 ---- home/programs/nvim/default.nix | 6 ---- home/programs/nvim/plugins.yaml | 1 - 4 files changed, 49 deletions(-) delete mode 100644 home/config/nvim/after/queries/elixir/matchup.scm delete mode 100644 home/config/nvim/plugins/matchup.fnl diff --git a/home/config/nvim/after/queries/elixir/matchup.scm b/home/config/nvim/after/queries/elixir/matchup.scm deleted file mode 100644 index 17b87c3..0000000 --- a/home/config/nvim/after/queries/elixir/matchup.scm +++ /dev/null @@ -1,36 +0,0 @@ -; Function definition -(call target: ((identifier) @open.def (#any-of? @open.def "def" "defp")) - (do_block - [(rescue_block "rescue" @mid.def.1) - (catch_block "catch" @mid.def.2)]? - "end" @close.def)) @scope.def - -; case/cond clause -(call target: ((identifier) @open.case (#any-of? @open.case "case" "cond")) - (do_block - "end" @close.case)) @scope.case - -; if/with clause -(call target: ((identifier) @open.if (#any-of? @open.if "if" "with")) - (do_block - (else_block "else" @mid.else.1)? - "end" @close.if)) @scope.if - -; try clause -(call target: ((identifier) @open.try (#eq? @open.try "try")) - (do_block - [(rescue_block "rescue" @mid.try.1) - (catch_block "catch" @mid.try.2) - (after_block "after" @mid.try.3)]? - "end" @close.try)) @scope.try - -; receive clause -(call target: ((identifier) @open.receive (#eq? @open.receive "receive")) - (do_block - (after_block "after" @mid.receive.1)? - "end" @close.receive)) @scope.receive - -; for comprehension -(call target: ((identifier) @open.for (#eq? @open.for "for")) - (do_block - "end" @close.for)) @scope.for diff --git a/home/config/nvim/plugins/matchup.fnl b/home/config/nvim/plugins/matchup.fnl deleted file mode 100644 index 21edb5b..0000000 --- a/home/config/nvim/plugins/matchup.fnl +++ /dev/null @@ -1,6 +0,0 @@ -(let [matchup (require :match-up)] - (matchup.setup {:matchparen {:deferred true - :offscreen {:method :popup :fullwidth true} - :start_sign "" - :end_sign ""}})) - diff --git a/home/programs/nvim/default.nix b/home/programs/nvim/default.nix index 7554dd0..ee20bd4 100644 --- a/home/programs/nvim/default.nix +++ b/home/programs/nvim/default.nix @@ -218,12 +218,6 @@ in type = "fennel"; } - { - plugin = vim-matchup; - config = builtins.readFile ../../config/nvim/plugins/matchup.fnl; - type = "fennel"; - } - # Textobjects nvim-treesitter-textobjects diff --git a/home/programs/nvim/plugins.yaml b/home/programs/nvim/plugins.yaml index 8e5c611..3ce7d20 100644 --- a/home/programs/nvim/plugins.yaml +++ b/home/programs/nvim/plugins.yaml @@ -44,7 +44,6 @@ - src: stevearc/conform.nvim # Pairs - src: windwp/nvim-autopairs -- src: andymass/vim-matchup # Textobjects - src: nvim-treesitter/nvim-treesitter-textobjects - src: kylechui/nvim-surround