Skip to content

Commit

Permalink
fix: Use proper filetype for mongo
Browse files Browse the repository at this point in the history
  • Loading branch information
kristijanhusak committed Jul 11, 2024
1 parent acfb660 commit d2ffc1b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions autoload/db_ui.vim
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ function! s:dbui.generate_new_db_entry(db) abort
\ 'schema_support': 0,
\ 'quote': 0,
\ 'default_scheme': '',
\ 'filetype': 'sql',
\ 'filetype': ''
\ }

call self.populate_schema_info(db)
Expand Down Expand Up @@ -427,7 +427,7 @@ function! s:dbui.populate_schema_info(db) abort
let a:db.schema_support = db_ui#schemas#supports_schemes(scheme_info, parsed_url)
let a:db.quote = get(scheme_info, 'quote', 0)
let a:db.default_scheme = get(scheme_info, 'default_scheme', '')
let a:db.filetype = get(scheme_info, 'filetype', 'sql')
let a:db.filetype = get(scheme_info, 'filetype', db#adapter#call(url, 'input_extension', [], 'sql'))
endfunction

" Resolve only urls for DBs that are files
Expand Down

0 comments on commit d2ffc1b

Please sign in to comment.