feat: add yazi, use treesitter for highlight
This commit is contained in:
parent
95b077c2ba
commit
4f118319d3
6 changed files with 67 additions and 24 deletions
|
@ -1,5 +0,0 @@
|
||||||
{
|
|
||||||
plugins.bufferline = {
|
|
||||||
enable = true;
|
|
||||||
};
|
|
||||||
}
|
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
# Import all your configuration modules here
|
# Import all your configuration modules here
|
||||||
imports = [
|
imports = [
|
||||||
|
./rainbow-delimiters.nix
|
||||||
./ai/avante.nix
|
./ai/avante.nix
|
||||||
./buffer/bufdelete.nix
|
./buffer/bufdelete.nix
|
||||||
./blink.nix
|
./blink.nix
|
||||||
./bufferline.nix
|
|
||||||
./comment.nix
|
./comment.nix
|
||||||
./core.nix
|
./core.nix
|
||||||
./direnv.nix
|
./direnv.nix
|
||||||
|
@ -16,13 +16,14 @@
|
||||||
./lazygit.nix
|
./lazygit.nix
|
||||||
./lsp
|
./lsp
|
||||||
./lualine.nix
|
./lualine.nix
|
||||||
./neo-tree.nix
|
|
||||||
# ./project.nix
|
# ./project.nix
|
||||||
./rainbow-delimiters.nix
|
|
||||||
./telescope.nix
|
./telescope.nix
|
||||||
./toggleterm.nix
|
./toggleterm.nix
|
||||||
./treesitter.nix
|
./treesitter.nix
|
||||||
./which-key.nix
|
./which-key.nix
|
||||||
|
|
||||||
|
./filemanager.nix
|
||||||
|
./ui.nix
|
||||||
];
|
];
|
||||||
plugins.web-devicons.enable = true;
|
plugins.web-devicons.enable = true;
|
||||||
}
|
}
|
||||||
|
|
|
@ -27,6 +27,12 @@
|
||||||
'';
|
'';
|
||||||
window.mappings."<space>" = "";
|
window.mappings."<space>" = "";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
plugins.yazi = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
dependencies.yazi.enable = true;
|
||||||
|
|
||||||
keymaps = [
|
keymaps = [
|
||||||
{
|
{
|
||||||
mode = [ "n" ];
|
mode = [ "n" ];
|
||||||
|
@ -40,5 +46,29 @@
|
||||||
desc = "Toggle Neo-Tree";
|
desc = "Toggle Neo-Tree";
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
{
|
||||||
|
mode = [ "n" ];
|
||||||
|
key = "<leader>cw";
|
||||||
|
action = "<cmd>Yazi cwd<cr>";
|
||||||
|
options = {
|
||||||
|
desc = "Open the file manager in nvim's working directory";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = [ "n" ];
|
||||||
|
key = "<c-up>";
|
||||||
|
action = "<cmd>Yazi toggle<cr>";
|
||||||
|
options = {
|
||||||
|
desc = "Resume the last yazi session";
|
||||||
|
};
|
||||||
|
}
|
||||||
|
{
|
||||||
|
mode = [ "n" ];
|
||||||
|
key = "<leader>y";
|
||||||
|
action = "<cmd>Yazi<cr>";
|
||||||
|
options = {
|
||||||
|
desc = "Open yazi at the current file";
|
||||||
|
};
|
||||||
|
}
|
||||||
];
|
];
|
||||||
}
|
}
|
|
@ -1,23 +1,23 @@
|
||||||
|
{ helpers, ... }:
|
||||||
{
|
{
|
||||||
plugins.rainbow-delimiters = {
|
plugins.rainbow-delimiters = {
|
||||||
enable = true;
|
enable = true;
|
||||||
highlight = [
|
highlight = [
|
||||||
"RainbowRed"
|
"RainbowDelimiterRed"
|
||||||
"RainbowYellow"
|
"RainbowDelimiterYellow"
|
||||||
"RainbowBlue"
|
"RainbowDelimiterBlue"
|
||||||
"RainbowOrange"
|
"RainbowDelimiterOrange"
|
||||||
"RainbowGreen"
|
"RainbowDelimiterGreen"
|
||||||
"RainbowViolet"
|
"RainbowDelimiterViolet"
|
||||||
"RainbowCyan"
|
"RainbowDelimiterCyan"
|
||||||
];
|
];
|
||||||
};
|
strategy = {
|
||||||
highlight = {
|
# Use global strategy by default
|
||||||
RainbowRed = { fg = "#E06C75"; };
|
default = "global";
|
||||||
RainbowYellow = { fg = "#E5C07B"; };
|
};
|
||||||
RainbowBlue = { fg = "#61AFEF"; };
|
query = {
|
||||||
RainbowOrange = { fg = "#D19A66"; };
|
default = "rainbow-delimiters";
|
||||||
RainbowGreen = { fg = "#98C379"; };
|
lua = "rainbow-blocks";
|
||||||
RainbowViolet = { fg = "#C678DD"; };
|
};
|
||||||
RainbowCyan = { fg = "#56B6C2"; };
|
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,5 +1,10 @@
|
||||||
{
|
{
|
||||||
plugins.treesitter = {
|
plugins.treesitter = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
autoLoad = true;
|
||||||
|
nixvimInjections = true;
|
||||||
|
settings = {
|
||||||
|
highlight.enable = true;
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
12
config/ui.nix
Normal file
12
config/ui.nix
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
{ helpers, ... }:
|
||||||
|
{
|
||||||
|
colorschemes.catppuccin = {
|
||||||
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
flavour = "mocha";
|
||||||
|
};
|
||||||
|
};
|
||||||
|
plugins.bufferline = {
|
||||||
|
enable = true;
|
||||||
|
};
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue