mirror of
https://github.com/srid/nixos-config.git
synced 2025-12-29 09:05:00 +08:00
nvim: improve
This commit is contained in:
parent
df1856ea79
commit
bbf97168f4
2 changed files with 20 additions and 3 deletions
|
|
@ -17,6 +17,7 @@ in
|
|||
|
||||
# Theme
|
||||
colorschemes.rose-pine.enable = true;
|
||||
# colorschemes.onedark.enable = true;
|
||||
|
||||
# Settings
|
||||
opts = {
|
||||
|
|
@ -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;
|
||||
};
|
||||
|
|
@ -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;
|
||||
|
|
@ -84,6 +96,7 @@ in
|
|||
"gt" = "type_definition";
|
||||
"gi" = "implementation";
|
||||
"K" = "hover";
|
||||
"<leader>A" = "code_action";
|
||||
};
|
||||
diagnostic = {
|
||||
"<leader>k" = "goto_prev";
|
||||
|
|
|
|||
|
|
@ -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";
|
||||
}
|
||||
];
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue