tmux aliases and nvim lua auto commands
This commit is contained in:
parent
38fe2f7481
commit
ff6bb86881
@ -9,5 +9,9 @@ vim.api.nvim_create_autocmd('TextYankPost', {
|
||||
pattern = '*',
|
||||
})
|
||||
|
||||
vim.cmd('autocmd BufWritePre *.go :Format')
|
||||
vim.cmd('autocmd BufWritePre *.lua :Format')
|
||||
vim.api.nvim_create_autocmd('BufWritePre', {
|
||||
callback = function()
|
||||
vim.lsp.buf.format()
|
||||
end,
|
||||
pattern = { '*.go', '*.lua' },
|
||||
})
|
||||
|
@ -44,3 +44,5 @@ vim.o.expandtab = true
|
||||
vim.g.lightspeed_no_default_keymaps = true
|
||||
|
||||
vim.o.cursorline = true
|
||||
|
||||
vim.opt.foldcolumn = '1'
|
||||
|
@ -61,5 +61,5 @@ return {
|
||||
'ThePrimeagen/harpoon',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
lazy = true,
|
||||
}
|
||||
},
|
||||
}
|
||||
|
@ -1,5 +1,8 @@
|
||||
alias v=nvim
|
||||
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
|
||||
alias ls='exa --icons'
|
||||
|
Loading…
x
Reference in New Issue
Block a user