This commit is contained in:
Hadi
2024-03-11 19:36:05 +01:00
commit dc9c7c8461
48 changed files with 1952 additions and 0 deletions

51
home/nvim/default.nix Normal file
View File

@@ -0,0 +1,51 @@
{ pkgs, inputs, ... }:
{
imports = [
inputs.nixvim.homeManagerModules.nixvim
./auto-pairs.nix
./options.nix
./bufferline.nix
./telescope.nix
./nvim-tree.nix
./lightline.nix
./git.nix
./cmp.nix
./none-ls.nix
./wilder.nix
./lsp.nix
./treesitter.nix
./toggleterm.nix
];
programs.nixvim = {
enable = true;
colorschemes.catppuccin.enable = true;
keymaps = [
# Global Mappings
# Default mode is "" which means normal-visual-op
{
# Toggle NvimTree
key = "<leader>e";
action = "<CMD>Neotree toggle<CR>";
}
{
# Format file
key = "<space>fm";
action = "<CMD>lua vim.lsp.buf.format()<CR>";
}
# Terminal Mappings
{
# Escape terminal mode using ESC
mode = "t";
key = "<esc>";
action = "<C-\\><C-n>";
}
];
};
}