kevinhwang91 / rnvimr

Make Ranger running in a floating window to communicate with Neovim via RPC
BSD 3-Clause "New" or "Revised" License
800 stars 17 forks source link

Rnvimr not triggering ftplugin #138

Closed Bekaboo closed 1 year ago

Bekaboo commented 1 year ago

============================================================================== rnvimr: health#rnvimr#check

OS ~

Ranger ~

Python ~

Pynvim ~

Ueberzug (optional) ~

RPC ~


**Describe the bug**
A clear and concise description of what the bug is.

I want to set some special rule for rnvimr window. I created a file `rnvimr.lua` under `~/.config/nvim/ftplugin`, but it is never called when rnvimr is opened. Similar floating terminal plugins like [vim-floaterm](https://github.com/voldikss/vim-floaterm) or [toggleterm.nvim](https://github.com/akinsho/toggleterm.nvim) do not have the similar issue.

**To Reproduce using `nvim -u mini.vim`**

N/A. This issue is related to ftplugin.

Steps to reproduce the behavior:
1. In `~/.config/nvim/ftplugin/rnvimr.lua`, write `vim.notify('rnvimr ftplugin fired', vim.log.levels.WARN)`
2. In nvim, open rnvimr
3. Check messages to see if rnvimr ftplugin is fired.

**Expected behavior**

`~/.config/nvim/ftplugin/rnvimr.lua` should be executed.
kevinhwang91 commented 1 year ago

Can't reproduce.