aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Bobov <anton@bobov.name>2024-04-28 21:47:06 +0500
committerAnton Bobov <anton@bobov.name>2024-05-18 00:34:29 +0500
commitca139d29e90360333cd857cee0a82c751ad7db2d (patch)
treeebedff8bb5e2d494c4acb212afe1af2dc424f0c1
parent58819a0d1ee9acc9ca74a6fd9e700e6f703415f2 (diff)
[vim] Updates
-rw-r--r--files/.vim/UltiSnips/sh.snippets8
-rw-r--r--files/.vim/autoload/plug.vim2
-rw-r--r--files/.vimrc18
3 files changed, 24 insertions, 4 deletions
diff --git a/files/.vim/UltiSnips/sh.snippets b/files/.vim/UltiSnips/sh.snippets
index 1e22d1a..37288ae 100644
--- a/files/.vim/UltiSnips/sh.snippets
+++ b/files/.vim/UltiSnips/sh.snippets
@@ -26,3 +26,11 @@ die() {
exit 1
}
endsnippet
+
+snippet psql
+psql --no-psqlrc --quiet -v ON_ERROR_STOP=1
+endsnippet
+
+snippet psqlq
+psql --no-psqlrc --quiet --no-align --tuples-only
+endsnippet
diff --git a/files/.vim/autoload/plug.vim b/files/.vim/autoload/plug.vim
index 723f908..940811a 100644
--- a/files/.vim/autoload/plug.vim
+++ b/files/.vim/autoload/plug.vim
@@ -2435,7 +2435,7 @@ function! s:clean(force)
let errs = {}
let [cnt, total] = [0, len(g:plugs)]
for [name, spec] in items(g:plugs)
- if !s:is_managed(name)
+ if !s:is_managed(name) || get(spec, 'frozen', 0)
call add(dirs, spec.dir)
else
let [err, clean] = s:git_validate(spec, 1)
diff --git a/files/.vimrc b/files/.vimrc
index bfb5890..46c2992 100644
--- a/files/.vimrc
+++ b/files/.vimrc
@@ -17,6 +17,8 @@ Plug 'tpope/vim-unimpaired'
" Intelligent date inc/dec
Plug 'tpope/vim-speeddating'
+" Heuristically set buffer options
+Plug 'tpope/vim-sleuth'
" Readline style insertion
"Plug 'tpope/vim-rsi'
" Show colors in CSS format
@@ -48,9 +50,6 @@ Plug 'scrooloose/nerdcommenter'
Plug 'raimondi/delimitmate'
" Syntax check and linting
Plug 'dense-analysis/ale'
-" Java LSP support for ALE
-" Required by https://github.com/georgewfraser/java-language-server
-Plug 'natebosch/vim-lsc'
" Text alignment commands
Plug 'godlygeek/tabular'
" Pasting in vim
@@ -90,6 +89,10 @@ Plug 'digitaltoad/vim-jade'
Plug 'jceb/vim-orgmode'
" EditorConfig plugin for Vim
Plug 'editorconfig/editorconfig-vim'
+" use CTRL+A/X to create increasing sequence of numbers or letters via visual mode
+Plug 'triglav/vim-visual-increment'
+" A Vim plugin that manages your tag files
+Plug 'ludovicchabant/vim-gutentags'
"Plug 'https://github.com/othree/xml.vim'
"Plug 'https://github.com/terryma/vim-multiple-cursors'
@@ -609,6 +612,7 @@ let g:templates_directory=$HOME . "/.vim/templates"
let g:ctrlp_map = "'p"
let g:ctrlp_user_command = 'ag %s -l --nocolor -g ""'
let g:ctrlp_user_caching = 0
+let g:ctrlp_root_markers = ['.envrc']
" }}}
" Ledger {{{
@@ -624,6 +628,8 @@ augroup ft_ledger
au FileType ledger noremap <Leader>e :call ledger#entry()<CR>
au FileType ledger compiler ledger
au BufWritePost *.ledger silent! make | redraw! | cwindow
+ au FileType ledger command Ltoday :Ledger register --period today
+ au FileType ledger command Lweek :Ledger register --period 'last week'
augroup END
let g:ledger_main = '~/Dropbox/ledger/journal.ledger'
@@ -700,6 +706,12 @@ let g:EditorConfig_exclude_patterns = ['fugitive://.*', 'scp://.*']
let g:local = 'postgres://postgres@localhost'
" }}}
+" gutentags {{{
+
+let g:gutentags_ctags_tagfile = '.tags'
+let g:gutentags_project_root = g:ctrlp_root_markers
+
+" }}}
" }}}
" Load custom local config {{{