Last active
October 17, 2023 16:31
-
-
Save jhilker98/fab812a7facef176380a437660b78b89 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{config, pkgs, lib, ...}: | |
{ | |
imports = [ | |
./plugins/which-key.nix | |
./plugins/nix-colors.nix | |
]; | |
programs.neovim = { | |
vimAlias = true; | |
viAlias = true; | |
}; | |
programs.nixvim = { | |
enable = true; | |
colorschemes.base16 = { | |
enable = true; | |
useTruecolor = true; | |
colorscheme = config.colorScheme.slug; | |
}; | |
options = { | |
number = true; # Show line numbers | |
relativenumber = true; # Show relative line numbers | |
shiftwidth = 2; # Tab width should be 2 | |
termguicolors = true; | |
}; | |
extraPlugins = with pkgs.vimPlugins; [ | |
vim-nix | |
nvim-fzf | |
nvim-fzf-commands | |
]; | |
globals = { | |
mapleader = " "; | |
}; | |
plugins = { | |
fugitive.enable = true; | |
emmet.enable = true; | |
which-key = { | |
enable = true; | |
labels = { | |
" " = "<space>"; | |
}; | |
bindings.n = { | |
"<leader>".subs = { | |
"f".name = "file"; | |
"c".name = "code"; | |
"g" = { | |
name = "git"; | |
bindings = { | |
"g" = { cmd = "Git<CR>"; description = "Git"; }; | |
}; | |
}; | |
"j".name = "jump"; | |
"b".name = "buffer"; | |
"o".name = "open/close"; | |
"s".name = "search"; | |
"d".name = "debug"; | |
"w".name = "window"; | |
"h".name = "help"; | |
"t".name = "toggle"; | |
" ".name = "local"; | |
}; | |
}; | |
}; | |
}; | |
}; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment