2024-02-27 21:20:00 +00:00
|
|
|
{ pkgs, ... }: {
|
2024-02-27 11:12:40 +00:00
|
|
|
programs = {
|
|
|
|
neovim = {
|
|
|
|
enable = true;
|
|
|
|
defaultEditor = true;
|
2024-02-27 21:16:39 +00:00
|
|
|
vimAlias = true;
|
|
|
|
plugins = with pkgs.vimPlugins; [
|
|
|
|
vim-fugitive
|
2024-02-27 21:20:00 +00:00
|
|
|
undotree
|
|
|
|
telescope-nvim
|
|
|
|
lsp-zero-nvim
|
|
|
|
(nvim-treesitter.withPlugins (p: [
|
|
|
|
p.tree-sitter-nix
|
|
|
|
p.tree-sitter-go
|
|
|
|
p.tree-sitter-vim
|
|
|
|
p.tree-sitter-bash
|
|
|
|
p.tree-sitter-json
|
|
|
|
p.tree-sitter-python
|
|
|
|
]))
|
2024-02-27 21:16:39 +00:00
|
|
|
];
|
|
|
|
extraLuaConfig = ''
|
|
|
|
${builtins.readFile ./options.lua}
|
|
|
|
'';
|
2024-02-27 11:12:40 +00:00
|
|
|
};
|
|
|
|
};
|
2024-02-27 21:16:39 +00:00
|
|
|
home.packages = with pkgs; [
|
|
|
|
# nix stuff
|
2024-02-27 21:48:45 +00:00
|
|
|
nixpkgs-fmt
|
2024-02-27 21:16:39 +00:00
|
|
|
nil
|
|
|
|
statix
|
|
|
|
];
|
2024-02-27 11:12:40 +00:00
|
|
|
home.sessionVariables.EDITOR = "nvim";
|
|
|
|
}
|