-
I'm trying to use this without a particular plugin manager. Just setting it up under lua/plugin/remote-nvim.lua with the following to load it: if vim.g.did_load_remote_nvim_plugin then
return
end
vim.g.did_load_remote_nvim_plugin = true
require('remote-nvim').setup {
devpod = {
ssh_config_path = utils.path_join(utils.is_windows, vim.fn.stdpath("data"), constants.PLUGIN_NAME, "ssh_config"), -- Path where devpod SSH configurations should be stored
search_style = "current_dir_only"
}
} However, I can't seem to use utils. I've found it in your repo, and I've tried to import it with something like: local utils = require('remote-nvim.utils')
# or
local utils = require('remote-nvim').utils Nothing seems to work for me. How can I just load this? I'm on NixOS so my ssh config is a symlink and managed by my home-manager plugin. It's not writable. I need to put the config for dev containers in a completely different file, so I wanted to set this up to know that. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Ah, need to answer my own question. The first form of my utils local did work. I just also needed Fixed with: if vim.g.did_load_remote_nvim_plugin then
return
end
vim.g.did_load_remote_nvim_plugin = true
local utils = require('remote-nvim.utils')
local constants = require('remote-nvim.constants')
require('remote-nvim').setup {
devpod = {
ssh_config_path = utils.path_join(utils.is_windows, vim.fn.stdpath("data"), constants.PLUGIN_NAME, "ssh_config"), -- Path where devpod SSH configurations should be stored
search_style = "current_dir_only"
}
} |
Beta Was this translation helpful? Give feedback.
Ah, need to answer my own question. The first form of my utils local did work. I just also needed
constants
.Fixed with: