diff --git a/flake.nix b/flake.nix index 922ccdc4..af22d586 100644 --- a/flake.nix +++ b/flake.nix @@ -46,7 +46,7 @@ # Hyprland Flake hyprland.url = "github:hyprwm/Hyprland"; # nixvim - neovim configuration management in nix - nixvim.url = "github:nix-community/nixvim"; + nixvim.url = "github:nix-community/nixvim/nixos-23.11"; nixvim.inputs.nixpkgs.follows = "nixpkgs"; }; outputs = { self, nixpkgs, nixpkgs-unstable, nixpkgs-wayland, home-manager, lanzaboote, nur, sops-nix, doom-emacs, nixos-generators, deploy-rs, ... } @inputs: diff --git a/home-manager/common/software/cli/nixvim.nix b/home-manager/common/software/cli/nixvim.nix index 008497c6..f89a09bc 100644 --- a/home-manager/common/software/cli/nixvim.nix +++ b/home-manager/common/software/cli/nixvim.nix @@ -9,6 +9,28 @@ number = true; shiftwidth = 2; }; + plugins = { + telescope.enable = true; + oil.enable = true; + treesitter.enable = true; + luasnip.enable = true; + + lsp = { + enable = true; + servers = { + rust-analyzer = true; + }; + }; + nvim-cmp = { + enable = true; + autoEnableSources = true; + sources = [ + { name = "nvim_lsp"; } + { name = "path"; } + { name = "buffer"; } + ]; + }; + }; colorschemes = { tokyonight.enable = true; };