From 2ea52d5eb0add90348ffbbc86aef7db922656e1d Mon Sep 17 00:00:00 2001 From: iFargle Date: Thu, 8 Feb 2024 11:42:16 +0900 Subject: [PATCH] Update nixvim --- flake.nix | 2 +- home-manager/common/software/cli/nixvim.nix | 22 +++++++++++++++++++++ 2 files changed, 23 insertions(+), 1 deletion(-) 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; };