Compare commits

...

7 commits

2 changed files with 49 additions and 2 deletions

View file

@ -68,7 +68,10 @@
useTheme = "gruvbox";
};
programs.direnv.enable = true;
programs.direnv = {
enable = true;
nix-direnv.enable = true;
};
programs.fish = {
enable = true;

View file

@ -12,6 +12,7 @@
# Rust
rust-analyzer
rustfmt
# Nix
alejandra
@ -367,6 +368,24 @@
silent = true;
};
}
{
action = '':lua vim.lsp.buf.rename()<CR>'';
key = "<Leader>cr";
options = {
desc = "Rename symbol";
noremap = true;
silent = true;
};
}
{
action = '':lua require("lsp_lines").toggle()<CR>'';
key = "<Leader>cd";
options = {
desc = "Toggle lsp lines";
noremap = true;
silent = true;
};
}
# {
# action = ":Yazi<CR>";
# key = "<Leader>mf";
@ -478,6 +497,28 @@
open_for_directories = true;
};
};
harpoon = {
enable = true;
keymaps = {
addFile = "<Leader>hh";
cmdToggleQuickMenu = "<Leader>hm";
gotoTerminal = {
"1" = "<Leader>ht";
"2" = "<Leader>2";
"3" = "<Leader>3";
"4" = "<Leader>4";
};
navFile = {
"1" = "<Leader>ha";
"2" = "<Leader>hs";
"3" = "<Leader>hd";
"4" = "<Leader>hf";
};
navNext = "<Leader>h]";
navPrev = "<Leader>h[";
toggleQuickMenu = "<Leader>hk";
};
};
# Code formatting
conform-nvim = {
@ -491,7 +532,8 @@
python = ["black"];
nix = ["alejandra"];
svelte = ["prettier"];
rust = ["rust-analyzer"];
rust = ["rustfmt"];
haskell = ["fourmolu"];
"*" = ["codespell"];
"_" = ["trim_whitespace"];
};
@ -509,6 +551,8 @@
tabline = {};
trailspace = {};
comment = {};
cursorword = {};
bracketed = {};
};
};