Add telescope nvim plugin
This commit is contained in:
parent
082240c343
commit
446e93f23f
@ -26,6 +26,7 @@
|
||||
python311
|
||||
python311Packages.flake8
|
||||
python311Packages.ipython
|
||||
ripgrep
|
||||
rusti-cal
|
||||
roboto-mono
|
||||
silver-searcher
|
||||
|
@ -6,14 +6,20 @@
|
||||
# Autocomplete
|
||||
# Missing plugins
|
||||
# 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
|
||||
# Trailing spaces in statusline
|
||||
# Good example: https://github.com/fred-drake/neovim/blob/master/config/python/language.nix
|
||||
|
||||
imports = [
|
||||
./telescope.nix
|
||||
];
|
||||
|
||||
programs.nixvim = {
|
||||
colorscheme = "sonokai";
|
||||
enable = true;
|
||||
extraPlugins = [
|
||||
extraPlugins = [
|
||||
pkgs.vimPlugins.indentLine
|
||||
pkgs.vimPlugins.polyglot
|
||||
pkgs.vimPlugins.sonokai
|
||||
@ -23,12 +29,7 @@
|
||||
sonokai_style = "atlantis";
|
||||
sonokai_disable_italic_comment = 1;
|
||||
};
|
||||
keymaps = [
|
||||
{
|
||||
key = "<leader>t";
|
||||
action = "<cmd>Neotree toggle<CR>";
|
||||
}
|
||||
];
|
||||
keymaps = [];
|
||||
opts = {
|
||||
colorcolumn = "88";
|
||||
cursorline = true;
|
||||
@ -67,7 +68,7 @@
|
||||
};
|
||||
};
|
||||
lualine.enable = true;
|
||||
neo-tree.enable = true;
|
||||
treesitter.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