Skip to content

Filetype not detected. #13

@wos-dot

Description

@wos-dot

I submitted a pull request that fixes opening splits in the callback. But neovim fails to detect the filetype of the file opened in the split. I have to run 'filetype detect' to fix it, like this:

 function! OpenConfigurationFileInSplit(name_index, name) abort
      if a:name_index >= 0
          execute "tabedit " . g:my_config_dir . a:name
          filetype detect
      endif
  endfunction

  function! SelectAndOpenConfigurationFile() abort
      call actionmenu#open(["init.vim", "plugins.vim"], 'OpenConfigurationFileInSplit')
  endfunction

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions