more fixups
This commit is contained in:
parent
44d03fb8ad
commit
831806c2dc
6 changed files with 21 additions and 31 deletions
|
|
@ -348,30 +348,4 @@ return {
|
||||||
{ 'ySs', mode = 'n' },
|
{ 'ySs', mode = 'n' },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
|
||||||
'saghen/blink.indent',
|
|
||||||
opts = {
|
|
||||||
blocked = {
|
|
||||||
filetypes = {
|
|
||||||
include_defaults = true,
|
|
||||||
'fugitive',
|
|
||||||
'markdown',
|
|
||||||
'typst',
|
|
||||||
'git',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
static = {
|
|
||||||
char = '│',
|
|
||||||
},
|
|
||||||
scope = { enabled = false },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
'zeybek/camouflage.nvim',
|
|
||||||
event = 'VeryLazy',
|
|
||||||
config = true,
|
|
||||||
keys = {
|
|
||||||
{ '<leader>C', '<cmd>CamouflageToggle<cr>', desc = 'Toggle Camouflage' },
|
|
||||||
},
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -73,3 +73,14 @@ vim.api.nvim_create_autocmd('WinLeave', {
|
||||||
vim.wo.cursorline = false
|
vim.wo.cursorline = false
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
vim.api.nvim_create_autocmd('BufEnter', {
|
||||||
|
group = aug,
|
||||||
|
callback = function()
|
||||||
|
local sw = vim.bo.shiftwidth
|
||||||
|
if sw <= 0 then return end
|
||||||
|
vim.opt_local.listchars:append({
|
||||||
|
leadmultispace = '│' .. string.rep(' ', sw - 1),
|
||||||
|
})
|
||||||
|
end,
|
||||||
|
})
|
||||||
|
|
|
||||||
|
|
@ -35,7 +35,6 @@ o.list = true
|
||||||
opt.listchars = {
|
opt.listchars = {
|
||||||
space = ' ',
|
space = ' ',
|
||||||
trail = '·',
|
trail = '·',
|
||||||
tab = ' ',
|
|
||||||
}
|
}
|
||||||
|
|
||||||
opt.matchpairs:append('<:>')
|
opt.matchpairs:append('<:>')
|
||||||
|
|
|
||||||
|
|
@ -50,8 +50,8 @@ unbind \'; bind \' splitw -hc '#{pane_current_path}'
|
||||||
unbind \-; bind \- splitw -vc '#{pane_current_path}'
|
unbind \-; bind \- splitw -vc '#{pane_current_path}'
|
||||||
|
|
||||||
unbind y; bind y if -F '#{pane_in_mode}' 'send q' 'copy-mode'
|
unbind y; bind y if -F '#{pane_in_mode}' 'send q' 'copy-mode'
|
||||||
unbind /; bind / if -F '#{pane_in_mode}' 'send q' 'copy-mode \; send /'
|
unbind /; bind / if -F '#{pane_in_mode}' 'send q' 'copy-mode ; send /'
|
||||||
unbind ?; bind ? if -F '#{pane_in_mode}' 'send q' 'copy-mode \; send ?'
|
unbind ?; bind ? if -F '#{pane_in_mode}' 'send q' 'copy-mode ; send ?'
|
||||||
|
|
||||||
bind -T copy-mode-vi v send -X begin-selection
|
bind -T copy-mode-vi v send -X begin-selection
|
||||||
bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
|
bind -T copy-mode-vi y send -X copy-pipe-and-cancel 'test -n "$WAYLAND_DISPLAY" && wl-copy || xclip -in -sel c'
|
||||||
|
|
|
||||||
|
|
@ -26,8 +26,10 @@ in
|
||||||
|
|
||||||
home.activation.cloneNixConfig = lib.hm.dag.entryAfter [ "createDirectories" ] ''
|
home.activation.cloneNixConfig = lib.hm.dag.entryAfter [ "createDirectories" ] ''
|
||||||
if [ ! -d "${repoDir}" ]; then
|
if [ ! -d "${repoDir}" ]; then
|
||||||
$DRY_RUN_CMD mkdir -p "$(dirname "${repoDir}")"
|
run mkdir -p "$(dirname "${repoDir}")"
|
||||||
$DRY_RUN_CMD ${pkgs.git}/bin/git clone https://github.com/barrettruth/nix-config.git "${repoDir}" || true
|
if ! run ${pkgs.git}/bin/git clone https://github.com/barrettruth/nix-config.git "${repoDir}" 2>&1; then
|
||||||
|
echo "WARNING: could not clone nix-config (network may not be ready)"
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
'';
|
'';
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,5 @@
|
||||||
{
|
{
|
||||||
|
pkgs,
|
||||||
lib,
|
lib,
|
||||||
...
|
...
|
||||||
}:
|
}:
|
||||||
|
|
@ -7,10 +8,13 @@ let
|
||||||
isNixOS = builtins.pathExists /etc/NIXOS;
|
isNixOS = builtins.pathExists /etc/NIXOS;
|
||||||
in
|
in
|
||||||
{
|
{
|
||||||
|
home.packages = lib.mkIf isNixOS [ pkgs.hyprpaper ];
|
||||||
|
|
||||||
services.hyprpaper = {
|
services.hyprpaper = {
|
||||||
enable = true;
|
enable = true;
|
||||||
package = lib.mkIf (!isNixOS) null;
|
package = lib.mkIf (!isNixOS) null;
|
||||||
settings = {
|
settings = {
|
||||||
|
preload = [ "~/img/screen/wallpaper.jpg" ];
|
||||||
wallpaper = [ ",~/img/screen/wallpaper.jpg" ];
|
wallpaper = [ ",~/img/screen/wallpaper.jpg" ];
|
||||||
splash = false;
|
splash = false;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue