usable vim config
This commit is contained in:
parent
a65e93cfec
commit
a4d0b06bfa
|
@ -7,10 +7,10 @@
|
|||
{
|
||||
imports =
|
||||
[
|
||||
# Include the results of the hardware scan.
|
||||
<home-manager/nixos>
|
||||
./hardware-configuration.nix
|
||||
./packages.nix
|
||||
<home-manager/nixos>
|
||||
./home.nix
|
||||
];
|
||||
|
||||
# Bootloader.
|
||||
|
@ -98,7 +98,6 @@
|
|||
];
|
||||
};
|
||||
|
||||
home-manager.users.zoe = { pkgs, ... }: { };
|
||||
|
||||
# Allow unfree packages
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
|
|
|
@ -0,0 +1,14 @@
|
|||
{ config, pkgs, ... }:
|
||||
let
|
||||
nvimCustom = import nvim/settings.nix;
|
||||
in
|
||||
{
|
||||
home-manager.users.zoe = { pkgs, ... }: {
|
||||
programs.neovim = nvimCustom pkgs;
|
||||
programs.git = {
|
||||
enable = true;
|
||||
userName = "zoe";
|
||||
userEmail = "ZoeOosting@outlook.com";
|
||||
};
|
||||
};
|
||||
}
|
|
@ -4,7 +4,15 @@ local g = vim.g
|
|||
-- allow mouse
|
||||
opt.mouse = "a"
|
||||
|
||||
-- colors
|
||||
-- look
|
||||
opt.termguicolors = true
|
||||
opt.cursorline = true
|
||||
opt.cursorline = false -- dont highlight current line
|
||||
opt.number = true
|
||||
|
||||
-- highlight yanked text for 200ms using the "Visual" highlight group
|
||||
vim.cmd[[
|
||||
augroup highlight_yank
|
||||
autocmd!
|
||||
au TextYankPost * silent! lua vim.highlight.on_yank({higroup="Visual", timeout=200})
|
||||
augroup END
|
||||
]]
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
pkgs:
|
||||
|
||||
{
|
||||
enable = true;
|
||||
vimAlias = true;
|
||||
|
||||
extraConfig = ''
|
||||
luafile /etc/nixos/nvim/settings.lua
|
||||
'';
|
||||
|
||||
plugins = with pkgs.vimPlugins; [
|
||||
# coc
|
||||
coc-nvim
|
||||
coc-rust-analyzer
|
||||
coc-lua
|
||||
|
||||
# make brackets nicer
|
||||
nvim-autopairs
|
||||
|
||||
# colorize hex codes
|
||||
nvim-colorizer-lua
|
||||
|
||||
# colorize brackets
|
||||
rainbow
|
||||
];
|
||||
}
|
|
@ -12,5 +12,7 @@
|
|||
wireguard-tools
|
||||
networkmanagerapplet
|
||||
vscodium
|
||||
neofetch
|
||||
nodejs
|
||||
];
|
||||
}
|
||||
|
|
12
sync.sh
12
sync.sh
|
@ -1,7 +1,17 @@
|
|||
#!/bin/sh
|
||||
|
||||
# update in case i was fucking around somewhere else
|
||||
git pull
|
||||
|
||||
# format everything to look nice
|
||||
nixpkgs-fmt *.nix
|
||||
nixpkgs-fmt ./nvim/*.nix
|
||||
|
||||
# make a backup just in case
|
||||
cp -r /etc/nixos/ ./backup
|
||||
sudo cp -r ./configuration.nix ./nvim/ ./packages.nix /etc/nixos/
|
||||
|
||||
# copy over all the files to /etc/nixos/
|
||||
sudo cp -r ./configuration.nix ./nvim/ ./packages.nix ./home.nix /etc/nixos/
|
||||
|
||||
# update and build my new config
|
||||
sudo nixos-rebuild switch --upgrade
|
||||
|
|
Loading…
Reference in New Issue