Merge pull request #337 from genebean/e2

Add some extra stuff, again
This commit is contained in:
Gene Liverman 2024-01-02 16:08:51 -05:00 committed by GitHub
commit a8274c879c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 72 additions and 30 deletions

View file

@ -1,14 +1,24 @@
{ 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; [ home.packages = with pkgs; [
cargo cargo
cheat
colordiff colordiff
dogdns dogdns
dos2unix dos2unix
du-dust du-dust
duf
fd fd
git-filter-repo git-filter-repo
gotop gotop
htop htop
httpie
hub hub
jq jq
lazygit lazygit
@ -65,6 +75,8 @@
}; };
}; };
}; };
bottom.enable = true;
broot.enable = true;
eza.enable = true; eza.enable = true;
gh.enable = true; gh.enable = true;
git = { git = {
@ -90,15 +102,22 @@
jq.enable = true; jq.enable = true;
neovim = { neovim = {
enable = true; enable = true;
defaultEditor = false; defaultEditor = true;
extraLuaConfig = '' extraLuaConfig = ''
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
vim.opt.rtp:prepend(lazypath) vim.opt.rtp:prepend(lazypath)
require("config.keymaps") require("config.keymaps")
require("lazy").setup("plugins") 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 plugins = [ pkgs.vimPlugins.lazy-nvim ]; # let lazy.nvim manage every other plugin
}; };
oh-my-posh = { oh-my-posh = {
@ -128,7 +147,7 @@
}; };
vim = { vim = {
enable = true; enable = true;
defaultEditor = true; defaultEditor = false;
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
syntastic syntastic
tabular tabular
@ -233,6 +252,7 @@
bcrrs = "bcrr --stream --no-verbose"; bcrrs = "bcrr --stream --no-verbose";
beo = "bundle exec onceover run spec --trace --force"; beo = "bundle exec onceover run spec --trace --force";
biv = "bundle install --path=vendor/bundle"; biv = "bundle install --path=vendor/bundle";
bottom = "echo 'To run bottom, the command is btm'";
ce = "code-exploration"; ce = "code-exploration";
dots = "cd ~/repos/dots"; dots = "cd ~/repos/dots";
gbc = '' gbc = ''
@ -245,6 +265,7 @@
sal = "ssh-add -L"; sal = "ssh-add -L";
st = "open -a SourceTree"; st = "open -a SourceTree";
sz = "source ~/.zshrc"; sz = "source ~/.zshrc";
trippy = "echo 'To run trippy, the command is trip'";
usegpg = "killall ssh-agent; export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) && gpgconf --launch gpg-agent"; usegpg = "killall ssh-agent; export SSH_AUTH_SOCK=$(gpgconf --list-dirs agent-ssh-socket) && gpgconf --launch gpg-agent";
usessh = "gpgconf --kill gpg-agent"; usessh = "gpgconf --kill gpg-agent";
}; };
@ -252,8 +273,12 @@
}; # end programs }; # end programs
home.file = { home.file = {
".config/nvim/lua" = { ".config/nvim/lua/config" = {
source = ../files/nvim/lua; source = ../files/nvim/lua/config;
recursive = true;
};
".config/nvim/lua/plugins" = {
source = ../files/nvim/lua/plugins;
recursive = true; recursive = true;
}; };
".config/powershell/Microsoft.PowerShell_profile.ps1".source = ../files/Microsoft.PowerShell_profile.ps1; ".config/powershell/Microsoft.PowerShell_profile.ps1".source = ../files/Microsoft.PowerShell_profile.ps1;

View file

@ -1,6 +1,9 @@
vim.g.mapleader = " " vim.g.mapleader = " "
vim.g.maplocalleader = " " vim.g.maplocalleader = " "
-- make sure vim know I always have a dark terminal
vim.opt.background = "dark"
-- use spaces for tabs and whatnot -- use spaces for tabs and whatnot
vim.opt.expandtab = true vim.opt.expandtab = true
vim.opt.tabstop = 2 vim.opt.tabstop = 2
@ -8,4 +11,4 @@ vim.opt.softtabstop = 2
vim.opt.shiftwidth = 2 vim.opt.shiftwidth = 2
vim.opt.shiftround = true vim.opt.shiftround = true
vim.keymap.set('n', '<leader>h', ':nohlsearch<CR>') vim.keymap.set("n", "<leader>h", ":nohlsearch<CR>")

View file

@ -0,0 +1,7 @@
return {
"nvim-telescope/telescope-cheat.nvim",
dependencies = {
"kkharji/sqlite.lua",
"nvim-telescope/telescope.nvim",
},
}

View file

@ -0,0 +1 @@
return { "nvim-telescope/telescope-symbols.nvim" }

View file

@ -1,18 +1,3 @@
return { return {
"nvim-telescope/telescope-ui-select.nvim", "nvim-telescope/telescope-ui-select.nvim",
config = function ()
-- This is your opts table
require("telescope").setup({
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown({
-- even more opts
})
}
}
})
-- load_extension, somewhere after setup function:
require("telescope").load_extension("ui-select")
end
} }

View file

@ -2,12 +2,28 @@ return {
"nvim-telescope/telescope.nvim", "nvim-telescope/telescope.nvim",
tag = "0.1.5", tag = "0.1.5",
dependencies = { "nvim-lua/plenary.nvim" }, dependencies = { "nvim-lua/plenary.nvim" },
config = function () config = function()
local builtin = require('telescope.builtin') -- This is your opts table
require("telescope").setup({
extensions = {
["ui-select"] = {
require("telescope.themes").get_dropdown({
-- even more opts
}),
},
},
})
vim.keymap.set('n', '<C-p>', builtin.find_files, {}) -- load_extension, somewhere after setup function:
vim.keymap.set('n', '<Space><Space>', builtin.oldfiles, {}) require("telescope").load_extension("cheat")
vim.keymap.set('n', '<Space>fg', builtin.live_grep, {}) require("telescope").load_extension("ui-select")
vim.keymap.set('n', '<Space>fh', builtin.help_tags, {})
end local builtin = require("telescope.builtin")
vim.keymap.set("n", "<leader>ts", ":Telescope<CR>")
vim.keymap.set("n", "<C-p>", builtin.find_files, {})
vim.keymap.set("n", "<leader><leader>", builtin.oldfiles, {})
vim.keymap.set("n", "<leader>fg", builtin.live_grep, {})
vim.keymap.set("n", "<leader>fh", builtin.help_tags, {})
end,
} }

View file

@ -8,6 +8,7 @@
]; ];
systemPackages = with pkgs; [ systemPackages = with pkgs; [
age age
bandwhich
coreutils coreutils
hugo hugo
mas mas
@ -46,11 +47,14 @@
"font-inconsolata-g-for-powerline" "font-inconsolata-g-for-powerline"
"font-source-code-pro-for-powerline" "font-source-code-pro-for-powerline"
"gitkraken" "gitkraken"
"handbrake"
"iterm2" "iterm2"
"keepingyouawake" "keepingyouawake"
"libreoffice" "libreoffice"
"logseq" "logseq"
"makemkv"
"meld" "meld"
"MKVToolNix"
"nextcloud" "nextcloud"
"onlyoffice" "onlyoffice"
"raycast" "raycast"

View file

@ -43,6 +43,7 @@
}; };
programs = { programs = {
bandwhich.enable = true;
zsh.enable = true; zsh.enable = true;
}; };