Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't load Rails project when open Vim with a directory #606

Open
ThanhKhoaIT opened this issue Jun 19, 2024 · 0 comments
Open

Can't load Rails project when open Vim with a directory #606

ThanhKhoaIT opened this issue Jun 19, 2024 · 0 comments

Comments

@ThanhKhoaIT
Copy link

ThanhKhoaIT commented Jun 19, 2024

My context: (use NERDTree plugin)
Step 1. Goto project folder (Ex: cd ~/project/demo-app)
Step 2. Open vim with vim . (filetype=nerdtree) "." is a directory

I can't use the command (:Vmodel, :Vcontroller, etc...)

PS. I checked the rails loaded status with the command :echo rails#app() => the output is {}.
But I workaround with the command line is vim in Step 2, to open Vim without a file/directory.

Can we add support for this case?
Change to autocmd FileType netrw,nerdtree in https://github.com/tpope/vim-rails/blob/master/plugin/rails.vim#L106

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant