mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-06 18:54:44 +08:00
Merge branch 'bugfix-newtab-syntax' of git://github.com/artnez/jedi-vim into newtab
This commit is contained in:
@@ -97,8 +97,12 @@ function! jedi#new_buffer(path)
|
||||
Python vim.command('edit ' + jedi_vim.escape_file_path(vim.eval('a:path')))
|
||||
endif
|
||||
" sometimes syntax is being disabled and the filetype not set.
|
||||
syntax on
|
||||
set filetype=python
|
||||
if !exists("g:syntax_on")
|
||||
syntax enable
|
||||
endif
|
||||
if &filetype != 'python'
|
||||
set filetype=python
|
||||
endif
|
||||
endfunction
|
||||
|
||||
function! jedi#add_goto_window()
|
||||
|
||||
Reference in New Issue
Block a user