2024-03-05 22:57:41 +01:00
|
|
|
{
|
|
|
|
home-manager,
|
|
|
|
pkgs,
|
|
|
|
...
|
|
|
|
}: {
|
2023-08-09 03:24:30 +02:00
|
|
|
home-manager.users.caspervk = {
|
|
|
|
programs.neovim = {
|
|
|
|
enable = true;
|
|
|
|
defaultEditor = true;
|
|
|
|
viAlias = true;
|
|
|
|
vimAlias = true;
|
|
|
|
vimdiffAlias = true;
|
|
|
|
|
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
|
|
kanagawa-nvim # colorscheme
|
|
|
|
vim-sleuth # automatic tab width
|
|
|
|
vim-surround # surrounding textobjects
|
|
|
|
indent-blankline-nvim # indentation guides
|
|
|
|
comment-nvim # comment keybinds
|
|
|
|
nvim-colorizer-lua # show colours in colours
|
2023-08-11 19:33:39 +02:00
|
|
|
leap-nvim # mouse, but its a keyboard
|
2023-08-09 03:24:30 +02:00
|
|
|
nvim-treesitter.withAllGrammars # code parser
|
|
|
|
nvim-treesitter-refactor # treesitter highlights and refactor keybinds
|
|
|
|
nvim-treesitter-textobjects # syntax-aware text objects
|
|
|
|
nvim-treesitter-context # context at the top of the screen
|
|
|
|
vim-matchup # better %
|
2023-08-11 19:33:39 +02:00
|
|
|
nvim-tree-lua # file explorer
|
|
|
|
nvim-web-devicons # file icons for nvim-tree
|
|
|
|
project-nvim # project management; mostly for nvim-tree
|
2023-08-09 03:24:30 +02:00
|
|
|
nvim-dap # debug adapter protocol
|
|
|
|
nvim-dap-virtual-text # show variable values in-line
|
2023-11-16 12:56:30 +01:00
|
|
|
salt-vim # salt syntax-highlighting
|
2023-08-09 03:24:30 +02:00
|
|
|
];
|
2024-03-05 22:57:41 +01:00
|
|
|
extraPackages = with pkgs; [];
|
2023-08-09 03:24:30 +02:00
|
|
|
|
|
|
|
extraConfig = builtins.readFile ./config.vim;
|
|
|
|
extraLuaConfig = builtins.readFile ./config.lua;
|
|
|
|
};
|
|
|
|
};
|
|
|
|
}
|