feat(nvim): Use yazi for find files

This commit is contained in:
uttarayan21
2024-12-05 17:55:47 +05:30
parent 230bb5038b
commit 27c7d5dea6
3 changed files with 59 additions and 47 deletions

View File

@@ -53,64 +53,57 @@ in {
home.packages = with pkgs; home.packages = with pkgs;
[ [
# spotify-player _1password-cli
sd alejandra
go ast-grep
pandoc bottom
nodejs btop
cachix
d2
deploy-rs deploy-rs
vcpkg-tool dust
fd
file
fzf
gnupg
go
gpg-tui
hasklig
hotedit
jq
jujutsu
just just
yarn macchina
p7zip
pandoc
pfetch-rs
pkg-config
ripgrep
sd
tldr
vcpkg-tool
yt-dlp
]
++ lib.optionals (!device.isServer) [
(nerdfonts.override {fonts = ["FiraCode" "Hasklig" "NerdFontsSymbolsOnly"];})
clang clang
cmake cmake
alejandra
pkg-config
devenv devenv
ra-multiplex
d2
jujutsu
# openapi-tui
# Misc
ttyper
qmk
ast-grep
p7zip
yt-dlp
# spotdl
picat
davis
gnupg
gpg-tui
file
jq
tldr
bottom
macchina
ripgrep
fd
dust
cachix
fzf
(nerdfonts.override {fonts = ["FiraCode" "Hasklig" "NerdFontsSymbolsOnly"];})
monaspace monaspace
hasklig qmk
pfetch-rs ttyper
hotedit yarn
_1password-cli
] ]
++ lib.optionals device.isLinux [ ++ lib.optionals device.isLinux [
rr
sbctl
gptfdisk
dig dig
usbutils gptfdisk
handlr-regex handlr-regex
handlr-xdg handlr-xdg
lsof lsof
ncpamixer ncpamixer
rr
sbctl
usbutils
] ]
++ lib.optionals device.isMac []; ++ lib.optionals device.isMac [];

2
flake.lock generated
View File

@@ -1816,7 +1816,7 @@
}, },
"locked": { "locked": {
"lastModified": 1, "lastModified": 1,
"narHash": "sha256-Zoq4MEovQdTzsJOX7dBaYsH6VpoDEizvVNC39HcP/7U=", "narHash": "sha256-8f299/5umLrM/pBs1qOpXuudN0A7oZ9oHfqcwEbDV8w=",
"path": "./neovim", "path": "./neovim",
"type": "path" "type": "path"
}, },

View File

@@ -68,6 +68,24 @@ in rec {
enable = true; enable = true;
settings.skip_confirm_for_simple_edits = true; settings.skip_confirm_for_simple_edits = true;
}; };
yazi = {
enable = true;
settings = {
open_for_directories = true;
keymaps = {
show_help = "<f1>";
open_file_in_vertical_split = "<c-v>";
open_file_in_horizontal_split = "<c-x>";
open_file_in_tab = "<c-t>";
grep_in_directory = "<c-s>";
replace_in_directory = "<c-g>";
cycle_open_buffers = "<tab>";
copy_relative_path_to_selected_files = "<c-y>";
send_to_quickfix_list = "<c-q>";
change_working_directory = "<c-c>";
};
};
};
# navic = { # navic = {
# enable = true; # enable = true;
@@ -507,7 +525,8 @@ in rec {
"<leader>bb" = "require'dap'.toggle_breakpoint"; "<leader>bb" = "require'dap'.toggle_breakpoint";
"<leader>du" = "require'dapui'.toggle"; "<leader>du" = "require'dapui'.toggle";
"<leader>fb" = "require'telescope'.extensions.file_browser.file_browser"; "<leader>fb" = "require'telescope'.extensions.file_browser.file_browser";
"<leader>ff" = "require'telescope.builtin'.find_files"; "<leader>ff" = "require'yazi'.yazi";
"<leader>fg" = "require'telescope.builtin'.find_files";
"<leader>gg" = "require'telescope.builtin'.live_grep"; "<leader>gg" = "require'telescope.builtin'.live_grep";
"<leader>;" = "require'telescope.builtin'.buffers"; "<leader>;" = "require'telescope.builtin'.buffers";
"zR" = "require'ufo'.openAllFolds"; "zR" = "require'ufo'.openAllFolds";