nixvim refactor

Former-commit-id: 55caf123df
This commit is contained in:
Hadi
2024-07-01 13:07:12 +00:00
parent 8cc101b169
commit 11f73f74ff
32 changed files with 275 additions and 221 deletions

View File

@@ -0,0 +1,44 @@
{
programs.nixvim = {
plugins = {
copilot-vim.enable = true;
flash.enable = true;
image.enable = true;
tmux-navigator.enable = true;
comment.enable = true;
nvim-autopairs.enable = true;
friendly-snippets.enable = true;
telescope = {
enable = true;
keymaps = {
"<leader>fg" = "live_grep";
};
extensions.fzf-native = { enable = true; };
};
treesitter = {
enable = true;
nixGrammars = true;
indent = true;
};
treesitter-context.enable = true;
};
keymaps = [
{
key = "<C-h>";
action = "<cmd>TmuxNavigateLeft<cr>";
}
{
key = "<C-j>";
action = "<cmd>TmuxNavigateDown<cr>";
}
{
key = "<C-k>";
action = "<cmd>TmuxNavigateUp<cr>";
}
{
key = "<C-l>";
action = "<cmd>TmuxNavigateRight<cr>";
}
];
};
}