tmux aliases and nvim lua auto commands

This commit is contained in:
Łukasz Pankowski 2024-02-03 07:16:41 +01:00
parent 38fe2f7481
commit ff6bb86881
4 changed files with 12 additions and 3 deletions

View File

@ -9,5 +9,9 @@ vim.api.nvim_create_autocmd('TextYankPost', {
pattern = '*', pattern = '*',
}) })
vim.cmd('autocmd BufWritePre *.go :Format') vim.api.nvim_create_autocmd('BufWritePre', {
vim.cmd('autocmd BufWritePre *.lua :Format') callback = function()
vim.lsp.buf.format()
end,
pattern = { '*.go', '*.lua' },
})

View File

@ -44,3 +44,5 @@ vim.o.expandtab = true
vim.g.lightspeed_no_default_keymaps = true vim.g.lightspeed_no_default_keymaps = true
vim.o.cursorline = true vim.o.cursorline = true
vim.opt.foldcolumn = '1'

View File

@ -61,5 +61,5 @@ return {
'ThePrimeagen/harpoon', 'ThePrimeagen/harpoon',
dependencies = { 'nvim-lua/plenary.nvim' }, dependencies = { 'nvim-lua/plenary.nvim' },
lazy = true, lazy = true,
} },
} }

View File

@ -1,5 +1,8 @@
alias v=nvim alias v=nvim
alias ll='ls -l' alias ll='ls -l'
alias ta='tmux attach -t'
alias tl='tmux list-sessions'
alias tn='tmux new -s'
if which exa > /dev/null; then if which exa > /dev/null; then
alias ls='exa --icons' alias ls='exa --icons'