Skip to content

Is rnvim_home correct on Windows? #186

Answered by akthe-at
jalvesaq asked this question in Q&A
Discussion options

You must be logged in to vote

It seems like a broken path to me:

    -- config.rnvim_home should be the directory where the plugin files are.
    config.rnvim_home = debug.getinfo(1).short_src:gsub("/lua.*", "")
    vim.notify("test 1: " .. config.rnvim_home)

    config.rnvim_home = vim.fn.expand("<script>:h:h")
    vim.notify("test 2: " .. config.rnvim_home)

 Info 12:21:35 PM notify.info test 1: ...010/AppData/Local/nvim-data/lazy/R.nvim
 Info 12:21:35 PM notify.info test 2: C:\Users\ARK010\AppData\Local\nvim-data\lazy\R.nvim

Replies: 3 comments 2 replies

Comment options

jalvesaq
Jul 18, 2024
Maintainer Author

You must be logged in to vote
1 reply
@akthe-at
Comment options

Comment options

jalvesaq
Jul 18, 2024
Maintainer Author

You must be logged in to vote
1 reply
@akthe-at
Comment options

Answer selected by jalvesaq
Comment options

jalvesaq
Jul 18, 2024
Maintainer Author

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants