Replace telescope and trouble with fzf-lua
This commit is contained in:
parent
18154472aa
commit
51c171c8dc
4 changed files with 21 additions and 47 deletions
|
@ -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 ];
|
||||
};
|
||||
}
|
||||
|
|
19
common/home-manager/nixvim/fzf-lua.nix
Normal file
19
common/home-manager/nixvim/fzf-lua.nix
Normal 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;
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue