Skip to content

Commit

Permalink
Switch to NixVim
Browse files Browse the repository at this point in the history
  • Loading branch information
NoRePercussions committed May 22, 2024
1 parent 2571d61 commit 3e87c72
Show file tree
Hide file tree
Showing 3 changed files with 304 additions and 8 deletions.
262 changes: 262 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 4 additions & 1 deletion flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,12 @@

sops-nix.url = "github:mic92/sops-nix";
sops-nix.inputs.nixpkgs.follows = "nixpkgs";

nixvim.url = "github:nix-community/nixvim";
nixvim.inputs.nixpkgs.follows = "nixpkgs";
};

outputs = inputs@{ self, nixpkgs, darwin, home-manager, sops-nix }:
outputs = inputs@{ self, nixpkgs, darwin, home-manager, sops-nix, nixvim }:
let
inherit (self) outputs;
inherit (darwin.lib) darwinSystem;
Expand Down
45 changes: 38 additions & 7 deletions home/tuckershea/common/core/neovim.nix
Original file line number Diff line number Diff line change
@@ -1,14 +1,45 @@
{ pkgs, ... }:
{ pkgs, inputs, ... }:
{
programs.neovim = {
imports = [
inputs.nixvim.homeManagerModules.nixvim
];

programs.nixvim = {
enable = true;
defaultEditor = true;
plugins = with pkgs.vimPlugins; [
vim-nix
dracula-nvim
# get some plugins
];
# colorschemes.dracula.enable = true;

viAlias = true;
vimAlias = true;

opts = {
number = true;
relativenumber = true;
signcolumn = "yes";
showmode = false;

colorcolumn = "70";

cursorline = true;

shiftwidth = 4;
tabstop = 4;
expandtab = true;

splitright = true;

smartcase = true;
mouse = "a";
undofile = true;
};

globals = {
mapleader = " ";
};

plugins.leap.enable = true;
plugins.lsp.enable = true;
# substitute.nvim?
plugins.treesitter.enable = true;
};
}

0 comments on commit 3e87c72

Please sign in to comment.