mirror of
https://github.com/genebean/dots.git
synced 2026-03-27 01:17:42 -04:00
Nixify my Neovim
This commit is contained in:
parent
abdb9190da
commit
c484f7b57a
3 changed files with 61 additions and 0 deletions
|
|
@ -43,6 +43,11 @@
|
||||||
|
|
||||||
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
nixos-hardware.url = "github:NixOS/nixos-hardware/master";
|
||||||
|
|
||||||
|
nixvim = {
|
||||||
|
url = "github:nix-community/nixvim/nixos-24.05";
|
||||||
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
};
|
||||||
|
|
||||||
nixpkgs-terraform = {
|
nixpkgs-terraform = {
|
||||||
url = "github:stackbuilders/nixpkgs-terraform";
|
url = "github:stackbuilders/nixpkgs-terraform";
|
||||||
inputs.nixpkgs.follows = "nixpkgs";
|
inputs.nixpkgs.follows = "nixpkgs";
|
||||||
|
|
|
||||||
10
modules/home-manager/common/neovim/default.nix
Normal file
10
modules/home-manager/common/neovim/default.nix
Normal file
|
|
@ -0,0 +1,10 @@
|
||||||
|
{inputs, ...}: {
|
||||||
|
imports = [
|
||||||
|
inputs.nixvim.homeManagerModules.nixvim
|
||||||
|
];
|
||||||
|
programs.nixvim = {
|
||||||
|
enable = true;
|
||||||
|
defaultEditor = true;
|
||||||
|
luaLoader.enable = true;
|
||||||
|
};
|
||||||
|
}
|
||||||
46
modules/home-manager/common/neovim/vim-options.nix
Normal file
46
modules/home-manager/common/neovim/vim-options.nix
Normal file
|
|
@ -0,0 +1,46 @@
|
||||||
|
{ ... }: {
|
||||||
|
programs.nixvim = {
|
||||||
|
globals = {
|
||||||
|
mapleader = " ";
|
||||||
|
maplocalleader = " ";
|
||||||
|
};
|
||||||
|
|
||||||
|
opts = {
|
||||||
|
# make sure vim know I always have a dark terminal
|
||||||
|
background = "dark";
|
||||||
|
|
||||||
|
# use spaces for tabs and whatnot
|
||||||
|
expandtab = true;
|
||||||
|
tabstop = 2;
|
||||||
|
softtabstop = 2;
|
||||||
|
shiftwidth = 2;
|
||||||
|
shiftround = true;
|
||||||
|
|
||||||
|
# make sure all the mouse stuff is on.
|
||||||
|
# pressing alt to hightlight + copy/paste works like it does outside of nvim
|
||||||
|
mouse = "a";
|
||||||
|
|
||||||
|
termguicolors = true;
|
||||||
|
|
||||||
|
# Tips from https://github.com/folke/edgy.nvim
|
||||||
|
# views can only be fully collapsed with the global statusline
|
||||||
|
laststatus = 3;
|
||||||
|
|
||||||
|
# Default splitting will cause your main splits to jump when opening an edgebar.
|
||||||
|
# To prevent this, set `splitkeep` to either `screen` or `topline`.
|
||||||
|
splitkeep = "screen";
|
||||||
|
};
|
||||||
|
|
||||||
|
# TODO
|
||||||
|
#vim.keymap.set("n", "<leader>h", ":nohlsearch<CR>")
|
||||||
|
|
||||||
|
#vim.wo.relativenumber = true
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue