Skip to content

Commit

Permalink
Refactor: Move global variable to new location in line with plugin st…
Browse files Browse the repository at this point in the history
…ructure
  • Loading branch information
Claudio Lepín Mena committed Jul 4, 2024
1 parent 964d4be commit df9e8cc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
7 changes: 1 addition & 6 deletions autoload/db_ui/schemas.vim
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,8 @@ let s:oracle_args = join(

function! s:get_oracle_queries()
let common_condition = ""
let legacy = 0

if exists('g:is_oracle_legacy')
let legacy = g:is_oracle_legacy
endif

if !legacy
if !db_ui_is_oracle_legacy
let common_condition = "AND U.common = 'NO'"
endif

Expand Down
1 change: 1 addition & 0 deletions plugin/db_ui.vim
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ let g:Db_ui_buffer_name_generator = get(g:, 'Db_ui_buffer_name_generator', 0)
let g:db_ui_debug = get(g:, 'db_ui_debug', 0)
let g:db_ui_hide_schemas = get(g:, 'db_ui_hide_schemas', [])
let g:db_ui_bind_param_pattern = get(g: , 'db_ui_bind_param_pattern', ':\w\+')
let g:db_ui_is_oracle_legacy = get(g:, 'db_ui_is_oracle_legacy', 0)
let s:dbui_icons = get(g:, 'db_ui_icons', {})
let s:expanded_icon = get(s:dbui_icons, 'expanded', '')
let s:collapsed_icon = get(s:dbui_icons, 'collapsed', '')
Expand Down

0 comments on commit df9e8cc

Please sign in to comment.