Compare commits

...

7 commits

2 changed files with 49 additions and 2 deletions

View file

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

View file

@ -12,6 +12,7 @@
# Rust # Rust
rust-analyzer rust-analyzer
rustfmt
# Nix # Nix
alejandra alejandra
@ -367,6 +368,24 @@
silent = true; 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>"; # action = ":Yazi<CR>";
# key = "<Leader>mf"; # key = "<Leader>mf";
@ -478,6 +497,28 @@
open_for_directories = true; 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 # Code formatting
conform-nvim = { conform-nvim = {
@ -491,7 +532,8 @@
python = ["black"]; python = ["black"];
nix = ["alejandra"]; nix = ["alejandra"];
svelte = ["prettier"]; svelte = ["prettier"];
rust = ["rust-analyzer"]; rust = ["rustfmt"];
haskell = ["fourmolu"];
"*" = ["codespell"]; "*" = ["codespell"];
"_" = ["trim_whitespace"]; "_" = ["trim_whitespace"];
}; };
@ -509,6 +551,8 @@
tabline = {}; tabline = {};
trailspace = {}; trailspace = {};
comment = {}; comment = {};
cursorword = {};
bracketed = {};
}; };
}; };