From a64752da5aee7ec518ac2855c4da696f72abd6a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20B=C3=B6hme?= Date: Thu, 17 Oct 2024 13:01:39 +0200 Subject: [PATCH] style: move telescope to own file --- modules/programs/nvim/new_plugins/other.nix | 35 ----------------- .../programs/nvim/new_plugins/telescope.nix | 39 +++++++++++++++++++ 2 files changed, 39 insertions(+), 35 deletions(-) create mode 100644 modules/programs/nvim/new_plugins/telescope.nix diff --git a/modules/programs/nvim/new_plugins/other.nix b/modules/programs/nvim/new_plugins/other.nix index 1b5d7c4..4d149e0 100644 --- a/modules/programs/nvim/new_plugins/other.nix +++ b/modules/programs/nvim/new_plugins/other.nix @@ -29,41 +29,6 @@ in ]; } { plugins.oil.enable = true; } - { - plugins = { - telescope = { - enable = true; - extensions.fzf-native.enable = true; - keymaps = { - "ff" = { - action = "find_files"; - options.desc = "Find files"; - }; - "fb" = { - action = "buffers"; - options.desc = "Find buffers"; - }; - "fl" = { - action = "current_buffer_fuzzy_find"; - options.desc = "Search lines"; - }; - "fg" = { - action = "live_grep"; - options.desc = "Live grep"; - }; - "fh" = { - action = "help_tags"; - options.desc = "Help tags"; - }; - "fr" = { - action = "oldfiles"; - options.desc = "Recent files"; - }; - }; - }; - web-devicons.enable = true; - }; - } { plugins.nvim-autopairs.enable = true; } { plugins.vim-surround.enable = true; } { diff --git a/modules/programs/nvim/new_plugins/telescope.nix b/modules/programs/nvim/new_plugins/telescope.nix new file mode 100644 index 0000000..a0f6b4b --- /dev/null +++ b/modules/programs/nvim/new_plugins/telescope.nix @@ -0,0 +1,39 @@ +_: + +{ + home-manager.users.moritz.programs.nixvim = { + plugins = { + telescope = { + enable = true; + extensions.fzf-native.enable = true; + keymaps = { + "ff" = { + action = "find_files"; + options.desc = "Find files"; + }; + "fb" = { + action = "buffers"; + options.desc = "Find buffers"; + }; + "fl" = { + action = "current_buffer_fuzzy_find"; + options.desc = "Search lines"; + }; + "fg" = { + action = "live_grep"; + options.desc = "Live grep"; + }; + "fh" = { + action = "help_tags"; + options.desc = "Help tags"; + }; + "fr" = { + action = "oldfiles"; + options.desc = "Recent files"; + }; + }; + }; + web-devicons.enable = true; + }; + }; +}