feat(rutine commit): fixes in nvim config - add auto tabulator fix at save operation (BufWritePre)
-master
parent
48cd17a29a
commit
3fda06f65e
|
|
@ -33,3 +33,5 @@ pshmrr = !git push --mirror
|
||||||
|
|
||||||
rmtadd = !git remote add
|
rmtadd = !git remote add
|
||||||
rmtsturl = !git remote set-url --add
|
rmtsturl = !git remote set-url --add
|
||||||
|
[http]
|
||||||
|
sslVerify = false
|
||||||
|
|
|
||||||
|
|
@ -174,24 +174,28 @@ call plug#begin()
|
||||||
|
|
||||||
augroup FormatAutogroup
|
augroup FormatAutogroup
|
||||||
autocmd!
|
autocmd!
|
||||||
autocmd BufWritePost * FormatWrite
|
autocmd BufWritePre * FormatWrite
|
||||||
|
autocmd BufReadPost,BufWritePre * :silent %s/\s\+$//ge | :silent %s/\t/ /ge
|
||||||
augroup END
|
augroup END
|
||||||
|
|
||||||
" loading lua scripts
|
" loading lua scripts
|
||||||
|
|
||||||
" mhartington/formatter.nvim loading
|
" mhartington/formatter.nvim loading
|
||||||
|
" if you want customize formatter for other languages, check this link:
|
||||||
|
" https://github.com/mhartington/formatter.nvim/tree/master/lua/formatter/filetypes
|
||||||
|
" and declare like python example:
|
||||||
|
|
||||||
au VimEnter * lua require('formatter').setup({
|
"au VimEnter * lua require('formatter').setup({
|
||||||
\ logging = false,
|
"\ logging = false,
|
||||||
\ filetype = {
|
"\ filetype = {
|
||||||
\ python = {
|
"\ python = {
|
||||||
\ require('formatter.filetypes.python').black
|
"\ require('formatter.filetypes.python').black
|
||||||
\ },
|
"\ },
|
||||||
\ ["*"] = {
|
"\ ["*"] = {
|
||||||
\ require('formatter.filetypes.any').remove_trailing_whitespace
|
"\ require('formatter.filetypes.any').remove_trailing_whitespace
|
||||||
\ }
|
"\ }
|
||||||
\ }
|
"\ }
|
||||||
\ })
|
"\ })
|
||||||
|
|
||||||
|
|
||||||
" vscode.nvim loading
|
" vscode.nvim loading
|
||||||
|
|
|
||||||
|
|
@ -107,6 +107,8 @@ alias tmux-session=/root/linux.config/tmux.config/tmux.session.sh
|
||||||
|
|
||||||
alias add-tbs093a-git-id='eval "$(ssh-agent -s)"; ssh-add ~/.ssh/git_accesses'
|
alias add-tbs093a-git-id='eval "$(ssh-agent -s)"; ssh-add ~/.ssh/git_accesses'
|
||||||
|
|
||||||
|
alias k8s=kubectl
|
||||||
|
|
||||||
# Generated for envman. Do not edit.
|
# Generated for envman. Do not edit.
|
||||||
[ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh"
|
[ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh"
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue