Compare commits

..

2 commits

Author SHA1 Message Date
lohhiiccc
1d366c9aa4 fix: vim polyglot indentation and filtype with asm 2026-06-22 14:12:25 +02:00
lohhiiccc
37b1e0cdb9 feat: git aliases 2026-06-22 14:11:30 +02:00
5 changed files with 22 additions and 8 deletions

View file

@ -2,6 +2,9 @@
alias ls='ls --color=auto'
alias la='ls --color=auto -lah'
alias gnp="git --no-pager"
alias gl="git --no-pager log --oneline"
alias gls="git ls-files"
if git --version | awk '{print $3}' | awk -F. '{ if (($1>2) || ($1==2 && $2>=12)) exit 0; else exit 1 }'; then
alias gcl='git clone --recurse-submodules -j$(($(nproc) / 2))'

View file

@ -0,0 +1,11 @@
augroup MyFtOverride
autocmd!
autocmd BufRead,BufNewFile *.h setfiletype=c
autocmd BufRead,BufNewFile *.hpp setfiletype=cpp
autocmd BufRead,BufNewFile *.tpp setfiletype=cpp
autocmd BufRead,BufNewFile *.ts setfiletype=typescript
autocmd BufRead,BufNewFile *.js setfiletype=javascript
autocmd BufRead,BufNewFile *.s setfiletype=asm
autocmd BufRead,BufNewFile */i3/config setfiletype=i3config
augroup END

View file

@ -1,4 +1,5 @@
set ts=4 sw=4
set ts=8
set hls
set wrap!
set number
set incsearch
@ -6,6 +7,7 @@ set cursorline
set scrolloff=2
set completeopt=menuone,noinsert
set clipboard=unnamedplus
set noexpandtab
augroup FocusNumbers
autocmd!
@ -13,3 +15,8 @@ augroup FocusNumbers
autocmd WinLeave,BufLeave * setlocal norelativenumber
augroup END
let g:polyglot_disabled = [
'r-lang',
'tpp',
'autoindent'
]

View file

@ -1,6 +0,0 @@
au BufRead,BufNewFile *.h set filetype=c
au BufRead,BufNewFile *.hpp set filetype=cpp
au BufRead,BufNewFile *.tpp set filetype=cpp
au BufRead,BufNewFile *.ts set filetype=typescript
au BufRead,BufNewFile *.js set filetype=javascript
au BufRead,BufNewFile **/i3/config set filetype=i3config

View file

@ -1,4 +1,3 @@
let g:polyglot_disabled = ['tpp']
if executable('clangd')
au User lsp_setup call lsp#register_server({