Add telescope to nixvim
This commit is contained in:
@@ -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; [
|
||||
|
||||
@@ -0,0 +1,41 @@
|
||||
{
|
||||
programs.nixvim.plugins.telescope = {
|
||||
enable = true;
|
||||
extensions.fzf-native.enable = true;
|
||||
keymaps = {
|
||||
"<leader>sh" = {
|
||||
action = "help_tags";
|
||||
options.desc = "Search Help";
|
||||
};
|
||||
"<leader>sf" = {
|
||||
action = "find_files";
|
||||
options.desc = "Search Files";
|
||||
};
|
||||
"<leader>ss" = {
|
||||
action = "builtin";
|
||||
options.desc = "Search Select Telescope";
|
||||
};
|
||||
"<leader>sg" = {
|
||||
action = "live_grep";
|
||||
options.desc = "Search by Grep";
|
||||
};
|
||||
"<leader><leader>" = {
|
||||
action = "buffers";
|
||||
options.desc = "Find existing buffers";
|
||||
};
|
||||
"<leader>/" = {
|
||||
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"
|
||||
];
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user