Compare commits

...

3 commits

7 changed files with 56 additions and 36 deletions

View file

@ -80,6 +80,7 @@ return {
buffer = "[buf]",
nvim_lsp = "[lsp]",
copilot = "[cop]",
org = "[org]",
luasnip = "[snip]",
nvim_lsp_signature_help = "[sig]",
nvim_lua = "[lua]",
@ -138,11 +139,15 @@ return {
{
'zbirenbaum/copilot.lua',
event = "InsertEnter",
config = function()
require("copilot").setup({
suggestion = {
enabled = true,
keymap = { accept = "<C-q>" },
auto_trigger = true,
keymap = {
accept = "<C-q>",
},
}
})
end

View file

@ -0,0 +1,7 @@
return {
"folke/zen-mode.nvim",
config = function ()
require("zen-mode").setup()
vim.keymap.set("n", "<leader>zz", vim.cmd.ZenMode)
end
}

View file

@ -38,6 +38,7 @@ format = ' [$symbol($version(-$name) )]($style)'
[conda]
symbol = " "
format = "[$symbol$environment]($style)"
[dart]
symbol = " "

View file

@ -23,3 +23,4 @@ bind -r j select-pane -D
bind -r h select-pane -L
bind -r l select-pane -R
bind-key -r f run-shell "tmux neww ~/.local/share/scripts/tmux-sessionizer.sh"

View file

@ -1,5 +1,6 @@
#!/bin/sh
if [ -f /usr/bin/envycontrol ]; then
gpu_mode=$(/usr/bin/envycontrol -q)
if [ "$gpu_mode" = "nvidia" ]; then
xrandr --setprovideroutputsource modesetting NVIDIA-0
@ -11,6 +12,7 @@ else
xrandr --output HDMI-1-0 --above eDP-1
xrandr --output HDMI-1-0 --primary
fi
fi
pkill picom
picom -b

View file

@ -4,7 +4,7 @@
if [[ $# -eq 1 ]]; then
selected=$1
else
selected=$(find ~/Nextcloud ~/.config ~/gits ~/2sem ~/ -mindepth 1 -maxdepth 1 -type d,l | fzf)
selected=$(find -L ~/Nextcloud ~/.config ~/gits ~/2sem ~/ -mindepth 1 -maxdepth 1 -type d,l | fzf)
fi
if [[ -z "$selected" ]]; then

View file

@ -41,6 +41,8 @@ fi
setxkbmap -layout us,pt
setxkbmap -option grp:win_space_toggle
# setup monitors (laptop only)
if [ -f /usr/bin/envycontrol ]; then
gpu_mode=$(/usr/bin/envycontrol -q)
if [ "$gpu_mode" = "nvidia" ]; then
xrandr --setprovideroutputsource modesetting NVIDIA-0
@ -52,4 +54,6 @@ else
xrandr --output HDMI-1-0 --above eDP-1
xrandr --output HDMI-1-0 --primary
fi
fi
exec i3