aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortdro <tdro@users.noreply.github.com>2023-10-01 17:15:12 -0400
committertdro <tdro@users.noreply.github.com>2023-10-01 17:15:12 -0400
commita0620f613529df80213623abde022b284f1ce54f (patch)
tree5b0f9588d6a6e073f433f89259aafd1664d61222
parent4f2f30fe7fa7cf7b7669c1fd90d38b100712b26c (diff)
downloaddotfiles-a0620f613529df80213623abde022b284f1ce54f.tar.gz
dotfiles-a0620f613529df80213623abde022b284f1ce54f.tar.bz2
dotfiles-a0620f613529df80213623abde022b284f1ce54f.zip
.vim/vimrc: Update format programs
Add horizontal syntax highlighting limit
-rw-r--r--.vim/vimrc18
1 files changed, 10 insertions, 8 deletions
diff --git a/.vim/vimrc b/.vim/vimrc
index 4ff20c2..ae2f235 100644
--- a/.vim/vimrc
+++ b/.vim/vimrc
@@ -50,6 +50,7 @@ set shortmess+=I " Disable startup message.
set shortmess-=S " Count number of search result matches.
set showtabline=0 " Disable tab bar.
set updatetime=1500 " Set duration for cursor hold event.
+set synmaxcol=500 " Maximum column in which to search for syntax items.
set fillchars= " Set split window margin fill to none.
set laststatus=0 " Disable status bar.
set linespace=3 " Set line spaces.
@@ -230,14 +231,13 @@ nnoremap ,awk :-1read $HOME/.vim/snippets/skeleton.awk<cr>
"---------------Plugin Settings---------------"
-let g:gundo_prefer_python3=1 " Use python3 to restore gundo functionality.
-let g:netrw_banner=0 " Disable netrw banner.
-let g:nnn#command = 'nnn -H' " Override default command.
-let g:nnn#set_default_mappings = 0 " Disable default mappings.
-let g:nnn#layout = 'new' " Opens the nnn window in a split.
-let g:nnn#layout = { 'left': '~20%' } " Left 20% of the window.
-
-let g:fzf_layout = { 'window': { 'xoffset': 0, 'yoffset': 1, 'width': 1, 'height': 0.5 } } " Set fzf window layout
+let g:gundo_prefer_python3=1 " Use python3 to restore gundo functionality.
+let g:netrw_banner=0 " Disable netrw banner.
+let g:nnn#command = 'nnn -H' " Override default command.
+let g:nnn#set_default_mappings = 0 " Disable default mappings.
+let g:nnn#layout = 'new' " Opens the nnn window in a split.
+let g:nnn#layout = { 'left': '~20%' } " Left 20% of the window.
+let g:fzf_layout = { 'window': { 'xoffset': 0, 'yoffset': 1, 'width': 1, 'height': 0.5 } } " Set fzf window layout,
"-------------------Scripts-------------------"
@@ -348,6 +348,8 @@ augroup AutoCommands
" Selective formatting using visual select + gq.
autocmd FileType nix set formatprg=nixfmt
autocmd FileType sh set formatprg=shfmt\ -
+ autocmd FileType lua set formatprg=lua-format
+ autocmd FileType perl set formatprg=perltidy\ -
autocmd FileType typescriptreact set formatprg=deno\ fmt\ -
autocmd FileType typescript set formatprg=deno\ fmt\ -
autocmd FileType elixir set formatprg=mix\ format\ -