diff --git a/modules/home-manager/nixvim/plugins/default.nix b/modules/home-manager/nixvim/plugins/default.nix index 4cc3db4..722fd5f 100644 --- a/modules/home-manager/nixvim/plugins/default.nix +++ b/modules/home-manager/nixvim/plugins/default.nix @@ -5,6 +5,7 @@ ./lsp.nix ./fmt.nix ./treesitter.nix + ./telescope.nix ./lualine.nix ./nvim-autopairs.nix ./which-key.nix @@ -14,6 +15,7 @@ plugins = { lz-n.enable = true; indent-blankline.enable = true; + web-devicons.enable = true; }; extraPlugins = with pkgs.vimPlugins; [ diff --git a/modules/home-manager/nixvim/plugins/telescope.nix b/modules/home-manager/nixvim/plugins/telescope.nix new file mode 100644 index 0000000..b7d391e --- /dev/null +++ b/modules/home-manager/nixvim/plugins/telescope.nix @@ -0,0 +1,41 @@ +{ + programs.nixvim.plugins.telescope = { + enable = true; + extensions.fzf-native.enable = true; + keymaps = { + "sh" = { + action = "help_tags"; + options.desc = "Search Help"; + }; + "sf" = { + action = "find_files"; + options.desc = "Search Files"; + }; + "ss" = { + action = "builtin"; + options.desc = "Search Select Telescope"; + }; + "sg" = { + action = "live_grep"; + options.desc = "Search by Grep"; + }; + "" = { + action = "buffers"; + options.desc = "Find existing buffers"; + }; + "/" = { + action = "current_buffer_fuzzy_find"; + options.desc = "Find in current buffer"; + }; + }; + settings.defaults.file_ignore_patterns = [ + "^.git/" + "^.mypy_cache/" + "^__pycache__/" + "^output/" + "^data/" + "^node_modules/" + "%.ipynb" + ]; + }; +}