Skip to content

Rails isn't detected in Oil.vim #615

@levicole

Description

@levicole

Hey there!

I started testing out oil.vim and noticed that switching to that from netrw, that rails isn't detected. This is the work around I used and I'm curious if:

  1. It could be better?
  2. Is it worth adding to the plugin?

I'm thinking "No" on 2. But still curious on 1. If anything posting here leaves a paper trail for someone else that might encounter the same issue.

vim.api.nvim_create_autocmd("User", {
  pattern = "OilEnter",
  callback = function()
    if vim.cmd("call RailsDetect(getcwd())") then
      vim.cmd("call rails#buffer_setup()")
    end
  end,
})

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