mirror of
https://github.com/davidhalter/jedi-vim.git
synced 2025-12-31 06:24:24 +08:00
turn syntax highlighting on again if it's turned off by renaming (possible vim bug).
This commit is contained in:
@@ -96,6 +96,9 @@ function! jedi#new_buffer(path)
|
||||
endif
|
||||
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
|
||||
endfunction
|
||||
|
||||
function! s:add_goto_window()
|
||||
|
||||
Reference in New Issue
Block a user