Skip to content

Commit

Permalink
nvim: improve
Browse files Browse the repository at this point in the history
  • Loading branch information
srid committed Oct 23, 2024
1 parent df1856e commit bbf9716
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 3 deletions.
15 changes: 14 additions & 1 deletion modules/home/all/neovim/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ in

# Theme
colorschemes.rose-pine.enable = true;
# colorschemes.onedark.enable = true;

# Settings
opts = {
Expand All @@ -38,7 +39,10 @@ in
web-devicons.enable = true;
lualine.enable = true;
bufferline.enable = true;
treesitter.enable = true;
treesitter = {
enable = true;
};
haskell-scope-highlighting.enable = true;
which-key = {
enable = true;
};
Expand All @@ -60,10 +64,18 @@ in
options.desc = "file finder";
action = "find_files";
};
"<leader>fr" = {
options.desc = "recent files";
action = "oldfiles";
};
"<leader>fg" = {
options.desc = "find via grep";
action = "live_grep";
};
"<leader>T" = {
options.desc = "switch colorscheme";
action = "colorscheme";
};
};
extensions = {
file-browser.enable = true;
Expand All @@ -84,6 +96,7 @@ in
"gt" = "type_definition";
"gi" = "implementation";
"K" = "hover";
"<leader>A" = "code_action";
};
diagnostic = {
"<leader>k" = "goto_prev";
Expand Down
8 changes: 6 additions & 2 deletions modules/home/all/neovim/nvim-tree.nix
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,12 @@
plugins.nvim-tree.enable = true;
keymaps = [
{
action = "<cmd>NvimTreeToggle<CR>";
key = "<leader>ft";
action = "<cmd>NvimTreeFindFileToggle<CR>";
key = "<leader>tt";
}
{
action = "<cmd>NvimTreeFindFile<CR>";
key = "<leader>tf";
}
];
}

0 comments on commit bbf9716

Please sign in to comment.