You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Oil is an alternative file explorer for Neovim that lets you edit the filesystem inside a normal buffer. The buffer has the type oil and is named oil:///<file path> (or, I believe, oil-ssh:///<file path>, since Oil also has ssh support)
The issue is that since the Oil opens directories in simple buffers, vim-helm calls this function on them (also, I'm not sure why, but findfile("Chart.yaml", expand('%:p:h').';') is always returning something, regardless of the current directory being emtpy. i.e. if I'm on an empty /foo directory and I call findfile("Chart.yaml", expand('%:p:h').';') on it, it will return /foo/Chart.yaml)
Reproducing:
Considering a neovim installation with both Oil.nvim and vim-helm, and an empty directory /Users/foo, when I open that directory with nvim /Users/foo and execute:
:echofindfile("Chart.yaml", expand('%:p:h').';')
I see:
(notice the filetype set to helm and the output of the findfile command)
The text was updated successfully, but these errors were encountered:
Oil is an alternative file explorer for Neovim that lets you edit the filesystem inside a normal buffer. The buffer has the type
oil
and is namedoil:///<file path>
(or, I believe,oil-ssh:///<file path>
, since Oil also has ssh support)The issue is that since the Oil opens directories in simple buffers,
vim-helm
calls this function on them (also, I'm not sure why, butfindfile("Chart.yaml", expand('%:p:h').';')
is always returning something, regardless of the current directory being emtpy. i.e. if I'm on an empty/foo
directory and I callfindfile("Chart.yaml", expand('%:p:h').';')
on it, it will return/foo/Chart.yaml
)Reproducing:
Considering a neovim installation with both
Oil.nvim
andvim-helm
, and an empty directory/Users/foo
, when I open that directory withnvim /Users/foo
and execute:I see:
![Screenshot 2024-05-21 at 10 44 42](https://private-user-images.githubusercontent.com/9031589/332449816-9076a60c-55d9-4b09-a9ed-ab4c2e049b0b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjQxMTMzNTYsIm5iZiI6MTcyNDExMzA1NiwicGF0aCI6Ii85MDMxNTg5LzMzMjQ0OTgxNi05MDc2YTYwYy01NWQ5LTRiMDktYTllZC1hYjRjMmUwNDliMGIucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI0MDgyMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNDA4MjBUMDAxNzM2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9ZTMzZGVmYzRhYjFiYTg0Yzk2YWFiYmU0MTYwMjc5NzdmOTA5YmM0YWJkMDdmOThhYzA4MTlhYWEwYjk3MDExNSZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QmYWN0b3JfaWQ9MCZrZXlfaWQ9MCZyZXBvX2lkPTAifQ.mLAiZMtIA-4l60M6owKBKg8_jJJUgS9XqgTaxEqX8O8)
(notice the filetype set to
helm
and the output of the findfile command)The text was updated successfully, but these errors were encountered: