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
@ -109,13 +113,14 @@ cmp.setup {
vim_item.kind = string.format("%s", kind_icons[vim_item.kind])
-- 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)",
luasnip = "(Snippet)",
buffer = "(Text)",
nvim_lsp_signature_help = "(Signature)",
nvim_lua = "(Nvim LSP)",
path = "(Path)",
})[entry.source.name]
nvim_lsp = "(LSP)",
copilot = "(Copilot)",
luasnip = "(Snippet)",
buffer = "(Text)",
nvim_lsp_signature_help = "(Signature)",
nvim_lua = "(Nvim LSP)",
path = "(Path)",
})[entry.source.name]
return vim_item
end,
},
@ -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'