Adjust some nvim bits

This commit is contained in:
Gene Liverman 2024-01-02 15:58:03 -05:00
parent 95eec44e89
commit 0962ff6eca
6 changed files with 57 additions and 29 deletions

View file

@ -1,6 +1,14 @@
{ pkgs, genebean-omp-themes, ... }: {
{ pkgs, genebean-omp-themes, ... }: let
sqlite_lib = if builtins.elem pkgs.system [
"aarch64-darwin"
"x86_64-darwin"
]
then "libsqlite3.dylib"
else "libsqlite3.so";
in {
home.packages = with pkgs; [
cargo
cheat
colordiff
dogdns
dos2unix
@ -94,15 +102,22 @@
jq.enable = true;
neovim = {
enable = true;
defaultEditor = false;
defaultEditor = true;
extraLuaConfig = ''
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
vim.opt.rtp:prepend(lazypath)
require("config.keymaps")
require("lazy").setup("plugins")
vim.g.sqlite_clib_path = '${pkgs.sqlite.out}/lib/${sqlite_lib}'
-- NOTE: This will get the OS from Lua:
-- print(vim.loop.os_uname().sysname)
'';
extraPackages = [ pkgs.gcc ]; # needed so treesitter can do compiling
extraPackages = with pkgs; [
gcc # needed so treesitter can do compiling
sqlite # needed by sqlite.lua used by telescope-cheat
];
plugins = [ pkgs.vimPlugins.lazy-nvim ]; # let lazy.nvim manage every other plugin
};
oh-my-posh = {
@ -132,7 +147,7 @@
};
vim = {
enable = true;
defaultEditor = true;
defaultEditor = false;
plugins = with pkgs.vimPlugins; [
syntastic
tabular
@ -258,8 +273,12 @@
}; # end programs
home.file = {
".config/nvim/lua" = {
source = ../files/nvim/lua;
".config/nvim/lua/config" = {
source = ../files/nvim/lua/config;
recursive = true;
};
".config/nvim/lua/plugins" = {
source = ../files/nvim/lua/plugins;
recursive = true;
};
".config/powershell/Microsoft.PowerShell_profile.ps1".source = ../files/Microsoft.PowerShell_profile.ps1;