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
|
||||
rmtsturl = !git remote set-url --add
|
||||
[http]
|
||||
sslVerify = false
|
||||
|
|
|
|||
|
|
@ -174,24 +174,28 @@ call plug#begin()
|
|||
|
||||
augroup FormatAutogroup
|
||||
autocmd!
|
||||
autocmd BufWritePost * FormatWrite
|
||||
autocmd BufWritePre * FormatWrite
|
||||
autocmd BufReadPost,BufWritePre * :silent %s/\s\+$//ge | :silent %s/\t/ /ge
|
||||
augroup END
|
||||
|
||||
" loading lua scripts
|
||||
|
||||
" 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({
|
||||
\ logging = false,
|
||||
\ filetype = {
|
||||
\ python = {
|
||||
\ require('formatter.filetypes.python').black
|
||||
\ },
|
||||
\ ["*"] = {
|
||||
\ require('formatter.filetypes.any').remove_trailing_whitespace
|
||||
\ }
|
||||
\ }
|
||||
\ })
|
||||
"au VimEnter * lua require('formatter').setup({
|
||||
"\ logging = false,
|
||||
"\ filetype = {
|
||||
"\ python = {
|
||||
"\ require('formatter.filetypes.python').black
|
||||
"\ },
|
||||
"\ ["*"] = {
|
||||
"\ require('formatter.filetypes.any').remove_trailing_whitespace
|
||||
"\ }
|
||||
"\ }
|
||||
"\ })
|
||||
|
||||
|
||||
" 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 k8s=kubectl
|
||||
|
||||
# Generated for envman. Do not edit.
|
||||
[ -s "$HOME/.config/envman/load.sh" ] && source "$HOME/.config/envman/load.sh"
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue