summaryrefslogtreecommitdiff
path: root/modules/programs
diff options
context:
space:
mode:
authorFreya Murphy <freya@freyacat.org>2025-01-21 13:12:21 +0000
committerFreya Murphy <freya@freyacat.org>2025-01-21 13:21:53 +0000
commitbc234ecd40299820f5a8b2f187cf02127f7fafd8 (patch)
treecc50ebb24e886235eb9e2eb03450e1ae8652ce54 /modules/programs
parentfix waybar battery format (diff)
downloaddotfiles-nix-bc234ecd40299820f5a8b2f187cf02127f7fafd8.tar.gz
dotfiles-nix-bc234ecd40299820f5a8b2f187cf02127f7fafd8.tar.bz2
dotfiles-nix-bc234ecd40299820f5a8b2f187cf02127f7fafd8.zip
neovim though home-manager
Diffstat (limited to 'modules/programs')
-rw-r--r--modules/programs/default.nix1
-rw-r--r--modules/programs/neovim/default.nix60
2 files changed, 61 insertions, 0 deletions
diff --git a/modules/programs/default.nix b/modules/programs/default.nix
index 20c3610..d526fa2 100644
--- a/modules/programs/default.nix
+++ b/modules/programs/default.nix
@@ -8,6 +8,7 @@
./hypr
./kitty
./mako
+ ./neovim
./starship
./waybar
./wofi
diff --git a/modules/programs/neovim/default.nix b/modules/programs/neovim/default.nix
new file mode 100644
index 0000000..823d0e4
--- /dev/null
+++ b/modules/programs/neovim/default.nix
@@ -0,0 +1,60 @@
+{ config, lib, pkgs, ... }:
+
+{
+ config = {
+
+ environment.variables.EDITOR = "nvim";
+
+ home-manager.users.${config.user} = {
+ programs.neovim = {
+
+ enable = true;
+
+ viAlias = true;
+ vimAlias = true;
+
+ extraLuaConfig = lib.fileContents ../../../files/config/nvim/init.lua;
+
+ plugins = with pkgs.vimPlugins; [
+ # Deoendencies
+ vim-devicons
+ nvim-web-devicons
+ # Lua functions
+ plenary-nvim
+ # Lines
+ lualine-nvim # mode line
+ bufferline-nvim # buffer line
+ # Menus
+ nvim-tree-lua # file browser
+ undotree # undo menu
+ trouble-nvim # error menu
+ telescope-nvim # grep/find menus
+ # Integrations
+ vim-fugitive # git
+ # Snippets
+ vim-vsnip
+ vim-vsnip-integ
+ friendly-snippets
+ # Completion
+ nvim-cmp
+ cmp-buffer
+ cmp-nvim-lsp
+ cmp-vsnip
+ nvim-surround # delimiter
+ # Lsp
+ nerdcommenter # comment functions
+ nvim-treesitter.withAllGrammars # hilighting
+ vim-illuminate # hilighting
+ todo-comments-nvim # todo comments
+ catppuccin-nvim # theme
+ nvim-lspconfig # lsp server
+ fidget-nvim # notifications
+ indent-o-matic # auto indentation
+ hologram-nvim # images
+ virt-column-nvim # 80 col line
+ ];
+ };
+ };
+
+ };
+}