Add telescope nvim plugin
This commit is contained in:
parent
082240c343
commit
446e93f23f
@ -26,6 +26,7 @@
|
|||||||
python311
|
python311
|
||||||
python311Packages.flake8
|
python311Packages.flake8
|
||||||
python311Packages.ipython
|
python311Packages.ipython
|
||||||
|
ripgrep
|
||||||
rusti-cal
|
rusti-cal
|
||||||
roboto-mono
|
roboto-mono
|
||||||
silver-searcher
|
silver-searcher
|
||||||
|
@ -6,10 +6,16 @@
|
|||||||
# Autocomplete
|
# Autocomplete
|
||||||
# Missing plugins
|
# Missing plugins
|
||||||
# Telescope and fuzzy finder
|
# Telescope and fuzzy finder
|
||||||
# Ruff linter for python and black
|
# Ruff linter for python and black formatting on save
|
||||||
|
# Language support for python, go, tofu, terraform, yaml
|
||||||
# Format on exit
|
# Format on exit
|
||||||
|
# Trailing spaces in statusline
|
||||||
# Good example: https://github.com/fred-drake/neovim/blob/master/config/python/language.nix
|
# Good example: https://github.com/fred-drake/neovim/blob/master/config/python/language.nix
|
||||||
|
|
||||||
|
imports = [
|
||||||
|
./telescope.nix
|
||||||
|
];
|
||||||
|
|
||||||
programs.nixvim = {
|
programs.nixvim = {
|
||||||
colorscheme = "sonokai";
|
colorscheme = "sonokai";
|
||||||
enable = true;
|
enable = true;
|
||||||
@ -23,12 +29,7 @@
|
|||||||
sonokai_style = "atlantis";
|
sonokai_style = "atlantis";
|
||||||
sonokai_disable_italic_comment = 1;
|
sonokai_disable_italic_comment = 1;
|
||||||
};
|
};
|
||||||
keymaps = [
|
keymaps = [];
|
||||||
{
|
|
||||||
key = "<leader>t";
|
|
||||||
action = "<cmd>Neotree toggle<CR>";
|
|
||||||
}
|
|
||||||
];
|
|
||||||
opts = {
|
opts = {
|
||||||
colorcolumn = "88";
|
colorcolumn = "88";
|
||||||
cursorline = true;
|
cursorline = true;
|
||||||
@ -67,7 +68,7 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
lualine.enable = true;
|
lualine.enable = true;
|
||||||
neo-tree.enable = true;
|
treesitter.enable = true;
|
||||||
web-devicons.enable = true;
|
web-devicons.enable = true;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
29
home/terminal/nixvim/telescope.nix
Normal file
29
home/terminal/nixvim/telescope.nix
Normal file
@ -0,0 +1,29 @@
|
|||||||
|
{ config, pkgs, lib, ...}:
|
||||||
|
{
|
||||||
|
programs.nixvim = {
|
||||||
|
plugins.telescope = {
|
||||||
|
enable = true;
|
||||||
|
extensions = {
|
||||||
|
file-browser.enable = true;
|
||||||
|
frecency.enable = true;
|
||||||
|
fzf-native.enable = true;
|
||||||
|
};
|
||||||
|
keymaps = {
|
||||||
|
# https://github.com/nvim-telescope/telescope.nvim?tab=readme-ov-file#pickers
|
||||||
|
# File pickers
|
||||||
|
"<leader>t" = "file_browser";
|
||||||
|
"<leader>ff" = "find_files";
|
||||||
|
"<leader>fg" = "live_grep";
|
||||||
|
# Vim pickers
|
||||||
|
"<leader>r" = "command_history";
|
||||||
|
"<leader>fo" = "oldfiles";
|
||||||
|
"<leader>fs" = "spell_suggest";
|
||||||
|
# Treesitter pickers
|
||||||
|
"<leader>ft" = "treesitter";
|
||||||
|
# Git pickers
|
||||||
|
"<leader>fgs" = "git_status";
|
||||||
|
# lsp
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user