forked from kristijanhusak/vim-dadbod-ui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.themisrc
49 lines (44 loc) · 1.25 KB
/
.themisrc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
call themis#option('runtimepath', './vim-dadbod')
call themis#option('runtimepath', './vim-dotenv')
call themis#option('reporter', 'spec')
filetype plugin indent on
syntax enable
let g:mapleader = ','
set shiftwidth=2
set softtabstop=2
set tabstop=2
set expandtab
set breakindent
set smartindent
let s:location_path = expand('%:p:h')
let g:db_ui_save_location = s:location_path
let g:db_ui_show_help = 0
function! SetupTestDbs() abort
let g:dbs = [
\ {'name': 'dadbod_ui_test', 'url': 'sqlite:'.fnamemodify('test/dadbod_ui_test.db', ':p') },
\ {'name': 'dadbod_ui_testing', 'url': 'sqlite:'.fnamemodify('test/dadbod_ui_test.db', ':p') },
\ ]
endfunction
function! Cleanup() abort
call db_ui#reset_state()
unlet! g:dbs
let w = 2
while w <= winnr('$')
silent! execute w . 'close!'
let w += 1
endwhile
silent! execute 'bwipeout!' join(range(1, bufnr('$')), ' ')
endfunction
function! SetOptionVariable(name, value) abort
unlet! g:loaded_dbui
let g:{a:name} = a:value
let g:db_ui_save_location = s:location_path
runtime plugin/db_ui.vim
endfunction
function! UnsetOptionVariable(name) abort
unlet! g:loaded_dbui
unlet! let g:{a:name}
let g:db_ui_save_location = s:location_path
runtime plugin/db_ui.vim
endfunction
" vim:ft=vim