chore(MISC): A bunch of files I forgot to commit over time.

This commit is contained in:
Afonso Franco 2023-05-21 20:18:09 +01:00
parent e63529d39c
commit 383761b23a
Signed by: afonso
SSH key fingerprint: SHA256:gkVPzsQQJzqi21ntQBV6pXTx4bYI53rFGI4XtvCpwd4
12 changed files with 45 additions and 43 deletions

View file

@ -19,8 +19,8 @@ import:
# Any items in the `env` entry below will be added as
# environment variables. Some entries may override variables
# set by alacritty itself.
#env:
# TERM variable
env:
TERM: xterm-256color
#
# This value is used to set the `$TERM` environment variable for
# each instance of Alacritty. If it is not present, alacritty will
@ -163,7 +163,7 @@ font:
#style: Bold Italic
# Point size
#size: 11.0
size: 12.0
# Offset is the extra space around each character. `offset.y` can be thought
# of as modifying the line spacing, and `offset.x` as modifying the letter

View file

@ -2,3 +2,9 @@ function config
/usr/bin/git --git-dir=$HOME/dotfiles/ --work-tree=$HOME $argv
end
function lazyconfig
lazygit --git-dir=$HOME/dotfiles/ --work-tree=$HOME/ $argv
end
alias lc=lazyconfig

View file

@ -1,4 +1,10 @@
bind \cH backward-kill-path-component
bind "[3;5~" kill-word
function backup --argument filename
cp $filename $filename.bak
end
function restore --argument file
mv $file (echo $file | sed s/.bak//)
end

View file

@ -1 +1,2 @@
plugin
lazy-lock.json

View file

@ -42,6 +42,7 @@ local kind_icons = {
Event = "",
Operator = "",
TypeParameter = "",
Copilot = "",
}
-- find more here: https://www.nerdfonts.com/cheat-sheet
@ -52,7 +53,7 @@ cmp.setup {
end,
},
mapping = {
["<C-b>"] = cmp.mapping(cmp.mapping.scroll_docs(-1), { "i", "c" }),
["<C-b>"] = cmp.mapping(cmp.mapping.scroll_docs( -1), { "i", "c" }),
["<C-f>"] = cmp.mapping(cmp.mapping.scroll_docs(1), { "i", "c" }),
["<C-Space>"] = cmp.mapping(cmp.mapping.complete(), { "i", "c" }),
["<C-y>"] = cmp.config.disable, -- Specify `cmp.config.disable` if you want to remove the default `<C-y>` mapping.
@ -61,7 +62,10 @@ cmp.setup {
c = cmp.mapping.close(),
},
-- Accept currently selected item. If none selected, do nothing.
["<CR>"] = cmp.mapping.confirm { select = false },
["<CR>"] = cmp.mapping.confirm {
behavior = cmp.ConfirmBehavior.Replace,
select = false
},
["<C-k>"] = cmp.mapping(function(fallback)
if luasnip.expandable() then
luasnip.expand()
@ -74,8 +78,8 @@ cmp.setup {
end
end),
["<C-j>"] = cmp.mapping(function(fallback)
if luasnip.jumpable(-1) then
luasnip.jump(-1)
if luasnip.jumpable( -1) then
luasnip.jump( -1)
else
fallback()
end
@ -110,6 +114,7 @@ cmp.setup {
-- vim_item.kind = string.format('%s %s', kind_icons[vim_item.kind], vim_item.kind) -- This concatonates the icons with the name of the item kind
vim_item.menu = ({
nvim_lsp = "(LSP)",
copilot = "(Copilot)",
luasnip = "(Snippet)",
buffer = "(Text)",
nvim_lsp_signature_help = "(Signature)",
@ -138,7 +143,9 @@ cmp.setup {
if char_before_cursor == "." then
if kind == 2 or kind == 5 then
return true
else return false end
else
return false
end
elseif string.match(line, "^%s*%w*$") then
if kind == 3 or kind == 6 then
return true
@ -151,7 +158,6 @@ cmp.setup {
},
{ name = 'nvim_lua' },
{ name = 'copilot' },
{ name = 'luasnip' },
{ name = 'nvim_lsp_signature_help' },
{ name = "path" },

View file

@ -34,6 +34,7 @@ lazy.setup({
--Change add and remove surroundings from words
'tpope/vim-surround',
'tpope/vim-obsession',
--Tmux navigation
{

View file

@ -5,7 +5,7 @@ null_ls.setup({
null_ls.builtins.formatting.rustfmt,
null_ls.builtins.formatting.stylish_haskell,
null_ls.builtins.formatting.fourmolu,
null_ls.builtins.formatting.black,
null_ls.builtins.formatting.blue,
null_ls.builtins.formatting.prettierd.with({
filetypes = { "html", "json", "yaml", "markdown" },
}),

View file

@ -13,7 +13,7 @@ local options = {
highlight = {
enable = true,
use_languagetree = true,
additional_vim_regex_highlighting = { "markdown" , "org"},
additional_vim_regex_highlighting = {"org"},
},
indent = {
enable = true,

View file

@ -42,8 +42,8 @@ set -g @catppuccin_window_tabs_enabled on
#THIS IS GOD MOD FOR TMUX
set -g @plugin 'tmux-plugins/tmux-resurrect'
#THIS IS ALSO GOD MOD FOR TMUX
#THIS HAS TO BE LAST IN THE LIST OF PLUGINS
set -g @resurrect-strategy-nvim 'session'
set -g @resurrect-capture-pane-contents 'on'
set -g @plugin 'tmux-plugins/tmux-continuum'
set -g @continuum-restore 'on'
set -g @continuum-save-interval '10'

View file

@ -15,3 +15,5 @@
format = ssh
[tag]
gpgsign = true
[pull]
rebase = false

View file

@ -10,5 +10,5 @@ export XDG_CURRENT_DESKTOP=sway
export GBM_BACKEND=nvidia-drm
export __GLX_VENDOR_LIBRARY_NAME=nvidia
export WLR_NO_HARDWARE_CURSORS=1
echo "Starting Hyprland..."
exec Hyprland

View file

@ -1,7 +1,7 @@
#!/bin/sh
XDG_SESSION_TYPE=x11
XDG_CURRENT_DESKTOP=X-Generic
export XDG_SESSION_TYPE=x11
export XDG_CURRENT_DESKTOP=X-Generic
userresources=$HOME/.Xresources
usermodmap=$HOME/.Xmodmap
sysresources=/etc/X11/xinit/.Xresources
@ -10,33 +10,14 @@ sysmodmap=/etc/X11/xinit/.Xmodmap
# merge in defaults and keymaps
if [ -f $sysresources ]; then
xrdb -merge $sysresources
fi
if [ -f $sysmodmap ]; then
xmodmap $sysmodmap
fi
if [ -f "$userresources" ]; then
xrdb -merge "$userresources"
fi
if [ -f "$usermodmap" ]; then
xmodmap "$usermodmap"
fi
@ -54,6 +35,5 @@ setxkbmap -layout us,pt
setxkbmap -option grp:win_space_toggle
setxkbmap -option caps:escape
xrandr --output DP-0 --primary --left-of HDMI-0
xscreensaver -no-splash &
dunst &
/home/afonso/.local/bin/xmonad