1
0
Fork 0

Replace telescope and trouble with fzf-lua

This commit is contained in:
Avery 2025-06-25 11:39:17 +00:00
parent 18154472aa
commit 51c171c8dc
Signed by: Avery
GPG key ID: B684FD451B692E04
4 changed files with 21 additions and 47 deletions

View file

@ -1,13 +1,12 @@
{ pkgs, ... }: {
{ ... }: {
imports = [
./completion.nix
./fzf-lua.nix
./lsp.nix
./lualine.nix
./neo-tree.nix
./none-ls.nix
./treesitter.nix
./telescope.nix
./trouble.nix
];
programs.nixvim = {
enable = true;
@ -43,7 +42,5 @@
web-devicons.enable = true;
nvim-autopairs.enable = true;
};
extraPlugins = with pkgs.vimPlugins; [ nvim-web-devicons ];
};
}

View file

@ -0,0 +1,19 @@
{ pkgs, ... }: {
home.packages = with pkgs; [ ripgrep ];
programs.nixvim.plugins.fzf-lua = {
enable = true;
keymaps = {
"<leader>ff" = "files";
"<leader>fg" = "live_grep";
"<leader>bb" = "buffers";
"<leader>dg" = {
action = "diagnostics_document";
settings = {
previewer = "none";
diag_icons = ''{"","","",""}'';
multiline = 1;
};
};
};
};
}

View file

@ -1,11 +0,0 @@
{ pkgs, ... }: {
home.packages = with pkgs; [ ripgrep ];
programs.nixvim.plugins.telescope = {
enable = true;
keymaps = {
"<leader>ff" = "find_files";
"<leader>fg" = "live_grep";
"<leader>bb" = "buffers";
};
};
}

View file

@ -1,31 +0,0 @@
{ ... }: {
programs.nixvim = {
plugins.trouble = {
enable = true;
settings = {
auto_refresh = true;
focus = true;
follow = false;
keys = {
"<cr>" = "jump_close";
"s" = "jump_vsplit";
"S" = "jump_split";
};
win = {
type = "float";
border = "rounded";
};
};
};
keymaps = [
{
action = "<cmd>Trouble diagnostics toggle<cr>";
key = "<leader>dg";
}
{
action = "<cmd>Trouble symbols toggle auto_close=true focus=true<cr>";
key = "<leader>sy";
}
];
};
}