packer.nvim icon indicating copy to clipboard operation
packer.nvim copied to clipboard

ftdetect files under rtp aren't sourced

Open dancek opened this issue 3 years ago • 0 comments

Not sure if I'm overlooking something obvious – sorry if I'm wasting your time here!

  • nvim --version: 0.8.0
  • git --version: 2.38.1
  • Operating system/version: Arch Linux (rolling release, updated this month)
  • Terminal name/version: kitty 0.26.5

Steps to reproduce

  1. Add the following lines in plugins.lua:
  use {
    'mlochbaum/BQN',
    rtp = 'editors/vim/'
  }
  1. Run PackerCompile and PackerSync, exit Neovim
  2. touch test.bqn
  3. nvim test.bqn

Actual behaviour

Filetype is not bqn (instead it tends to be conf for actual BQN files but empty for empty files). However if filetype is set manually the plugin works.

Expected behaviour

Filetype should be bqn. The file https://github.com/mlochbaum/BQN/blob/master/editors/vim/ftdetect/bqn.vim should have been loaded.

packer files

Plugin specification file(s)

The steps above should be enough

packer log file

No lines in log when opening file

packer compiled file

Relevant snippets:

_G.packer_plugins = {
  BQN = {
    loaded = true,
    path = "/home/hannu/.local/share/nvim/site/pack/packer/start/BQN/editors/vim/",
    url = "https://github.com/mlochbaum/BQN"
  },
-- Runtimepath customization
time([[Runtimepath customization]], true)
vim.o.runtimepath = vim.o.runtimepath .. ",/home/hannu/.local/share/nvim/site/pack/packer/start/BQN/editors/vim/"
time([[Runtimepath customization]], false)

dancek avatar Nov 18 '22 17:11 dancek