Compare commits

..

No commits in common. "c5de48b167e1f5d2cca290d74b9ba7b56a8cf9ab" and "5a111674753a30579612e7673d3b4f42538cf8bb" have entirely different histories.

12 changed files with 93 additions and 45 deletions

View file

@ -15,7 +15,7 @@ let
gnomePkgs = with pkgs; [ gnomePkgs = with pkgs; [
gnomecast gnomecast
gnome-tweaks gnome.gnome-tweaks
gnomeExtensions.worksets gnomeExtensions.worksets
]; ];
in in

View file

@ -18,12 +18,7 @@ in
rebase = { rebase = {
updateRefs = true; updateRefs = true;
}; };
init = {
defaultBranch = "main";
};
}; };
ignores = [ ignores = [
".idea/" ".idea/"
".direnv/" ".direnv/"

View file

@ -10,6 +10,38 @@ let
}; };
}; };
vim-catppuccino = pkgs.vimUtils.buildVimPlugin {
name = "vim-catppuccino";
src = pkgs.fetchFromGitHub {
owner = "Pocco81";
repo = "Catppuccino.nvim";
rev = "014d8575acdd19ecef4ecb12fc82a2e21794b548";
sha256 = "0i0p21jkrx99n3dnm5xvnw8n963c67l4lgl4iwngz0psdzwxphkw";
};
};
copilot-lua = pkgs.vimUtils.buildVimPlugin {
name = "copilot.lua";
version = "2024-06-18";
src = pkgs.fetchFromGitHub {
owner = "zbirenbaum";
repo = "copilot.lua";
rev = "86537b286f18783f8b67bccd78a4ef4345679625";
sha256 = "sha256-HC1QZlqEg+RBz/8kjLadafc06UoMAjhh0UO/BWQGMY8=";
};
};
copilot-cmp = pkgs.vimUtils.buildVimPlugin {
name = "copilot-cmp";
version = "2024-06-18";
src = pkgs.fetchFromGitHub {
owner = "zbirenbaum";
repo = "copilot-cmp";
rev = "c2cdb3c0f5078b0619055af192295830a7987790";
sha256 = "sha256-+MzEGnhlrYRvAfskOwmw69OC1CsPXt7s3z+xPe9XPqs=";
};
};
vim-precognition = pkgs.vimUtils.buildVimPlugin { vim-precognition = pkgs.vimUtils.buildVimPlugin {
name = "vim-precognition"; name = "vim-precognition";
version = "2024-05-26"; version = "2024-05-26";
@ -29,9 +61,8 @@ with builtins;
plugins = with pkgs.vimPlugins; [ plugins = with pkgs.vimPlugins; [
vim-sensible vim-sensible
vim-startify vim-startify
catppuccin-nvim vim-catppuccino
vim-precognition vim-precognition
nvim-treesitter.withAllGrammars
{ {
plugin = fzf-vim; plugin = fzf-vim;
@ -144,6 +175,29 @@ with builtins;
nnoremap <leader>fh <cmd>lua require('telescope.builtin').help_tags()<cr> nnoremap <leader>fh <cmd>lua require('telescope.builtin').help_tags()<cr>
''; '';
} }
{
plugin = copilot-lua;
config = ''
lua << EOF
vim.defer_fn(function()
require('copilot').setup({
-- Disable these features because we're also using copilot-cmp
suggestion = { enabled = false },
panel = { enabled = false },
copilot_node_command = '${pkgs.nodejs-18_x}/bin/node',
})
end, 100)
EOF
'';
}
{
plugin = copilot-cmp;
config = ''
lua << EOF
require('copilot_cmp').setup({})
EOF
'';
}
# have the completion plugin get loaded last just in case anything above # have the completion plugin get loaded last just in case anything above
# needs to do setup work before completions get set up. # needs to do setup work before completions get set up.
{ {

View file

@ -10,7 +10,7 @@ set pastetoggle=<F3>
set nowrap set nowrap
set background=dark set background=dark
colorscheme catppuccin colorscheme catppuccino
set nocompatible set nocompatible
set number relativenumber set number relativenumber
@ -86,11 +86,3 @@ set scrolloff=10
if filereadable($HOME . "/.vimrc.local") if filereadable($HOME . "/.vimrc.local")
source ~/.vimrc.local source ~/.vimrc.local
endif endif
lua << EOF
require'nvim-treesitter.configs'.setup {
highlight = {
enable = true,
},
}
EOF

View file

@ -149,7 +149,7 @@ capabilitiesWithoutFomatting.textDocument.formatting = false
capabilitiesWithoutFomatting.textDocument.rangeFormatting = false capabilitiesWithoutFomatting.textDocument.rangeFormatting = false
capabilitiesWithoutFomatting.textDocument.range_formatting = false capabilitiesWithoutFomatting.textDocument.range_formatting = false
nvim_lsp.ts_ls.setup { nvim_lsp.tsserver.setup {
init_options = { init_options = {
hostInfo = "neovim", hostInfo = "neovim",
maxTsServerMemory = "8192", maxTsServerMemory = "8192",
@ -181,5 +181,3 @@ nvim_lsp.lua_ls.setup {
} }
nvim_lsp.texlab.setup {} nvim_lsp.texlab.setup {}
nvim_lsp.gleam.setup {}

View file

@ -1,19 +1,14 @@
{ ... }: { pkgs, ... }:
{ {
programs.tmux = { programs.tmux = {
enable = true; enable = true;
tmuxinator = { tmuxinator = {
enable = true; enable = true;
}; };
terminal = "screen-256color";
aggressiveResize = true;
secureSocket = false; secureSocket = false;
baseIndex = 1; };
historyLimit = 10000;
escapeTime = 500;
mouse = true;
extraConfig = builtins.readFile ./tmux.conf; home.file.".tmux.conf" = {
source = ./tmux.conf;
}; };
} }

View file

@ -1,3 +1,20 @@
# reload tmux conf
unbind r
bind r source-file ~/.tmux.conf
bind-key C-a last-window
setw -g aggressive-resize on
# faster escape recognition
set-option -sg escape-time 50
# number tabs starting at 1
set-option -g base-index 1
set-option -g default-terminal screen-256color
# STATUS BAR
set-option -g status-bg colour234 # light gray bg set-option -g status-bg colour234 # light gray bg
set-option -g status-fg colour255 # black text set-option -g status-fg colour255 # black text
@ -7,12 +24,17 @@ setw -g window-status-current-format "#[fg=white,bold]#[bg=cyan][#I:#W]"
set-option -g set-titles on set-option -g set-titles on
set-option -g set-titles-string '[#S:#I #H] #W' set-option -g set-titles-string '[#S:#I #H] #W'
# mouse mode
set -g mouse on
# clipboard # clipboard
set -g set-clipboard off set -g set-clipboard off
bind-key C-a last-window # big scrollback
set-option -g history-limit 10240
# https://github.com/tmux/tmux/issues/4240 and https://github.com/LnL7/nix-darwin/issues/1181
set -gu default-command
set-option -g default-shell "$SHELL"
# smart pane switching with awareness of vim splits
bind -n C-h run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-h) || tmux select-pane -L"
bind -n C-j run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-j) || tmux select-pane -D"
bind -n C-k run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-k) || tmux select-pane -U"
bind -n C-l run "(tmux display-message -p '#{pane_current_command}' | grep -iq vim && tmux send-keys C-l) || tmux select-pane -R"

View file

@ -139,7 +139,7 @@
services.gnome.gnome-remote-desktop.enable = false; services.gnome.gnome-remote-desktop.enable = false;
# Enable touchpad support. # Enable touchpad support.
services.libinput.enable = true; services.xserver.libinput.enable = true;
services.xserver = { services.xserver = {
# Enable the X11 windowing system. # Enable the X11 windowing system.

View file

@ -35,9 +35,5 @@
swapDevices = swapDevices =
[{ device = "/dev/disk/by-uuid/97c769a2-55da-475a-8dc0-d74d8bbde514"; }]; [{ device = "/dev/disk/by-uuid/97c769a2-55da-475a-8dc0-d74d8bbde514"; }];
powerManagement= { powerManagement.cpuFreqGovernor = lib.mkDefault "powersave";
enable = true;
cpuFreqGovernor = lib.mkDefault "powersave";
powertop.enable = true;
};
} }

View file

@ -74,7 +74,6 @@ in
pkgs.syncthing pkgs.syncthing
pkgs.slack pkgs.slack
pkgs._1password pkgs._1password
# pkgs._1password-gui
pkgs.tailscale pkgs.tailscale
whatsapp whatsapp
obs-studio obs-studio

View file

@ -91,9 +91,6 @@
services.xserver.layout = "us"; services.xserver.layout = "us";
# xps11 is primarly used as a "server"
services.logind.lidSwitch = "ignore";
nixpkgs.config.packageOverrides = pkgs: { nixpkgs.config.packageOverrides = pkgs: {
vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; }; vaapiIntel = pkgs.vaapiIntel.override { enableHybridCodec = true; };
}; };

@ -1 +1 @@
Subproject commit fecfe5a04ea935f130173fc32a23c2e2a94a77d4 Subproject commit 2ad64358ccb89ceb63d8c3815462af6590590462