danielweidinger / nvim-sshfs Goto Github PK
View Code? Open in Web Editor NEWPlugin for easy remote file editing and exploration
License: MIT License
Plugin for easy remote file editing and exploration
License: MIT License
Hi, I'm trying to use this plugin in neovim 9.2 and I'm getting this error:
map table: 0x7f21c46dcd40 function: 0x7f21c46cc0a0 ...im/site/pack/packer/start/nvim-sshfs/lua/sshfs/utils.lua:112: attempt to concatenate field 'hostname' (a nil value)
stack traceback:
^I...im/site/pack/packer/start/nvim-sshfs/lua/sshfs/utils.lua:112: in function <...im/site/pack/packer/start/nvim-sshfs/lua/sshfs/utils.lua:111>
^I[C]: in function 'map'
^I...im/site/pack/packer/start/nvim-sshfs/lua/sshfs/utils.lua:111: in function 'formatted_lines'
^I...vim/site/pack/packer/start/nvim-sshfs/lua/sshfs/init.lua:47: in function 'open_hosts'
^I[string ":lua"]:1: in main chunk
E5108: Error executing lua ...m/site/pack/packer/start/nvim-sshfs/lua/sshfs/window.lua:31: Invalid 'replacement string' item: expected String, got Dict
stack traceback:
[C]: in function 'nvim_buf_set_lines'
...m/site/pack/packer/start/nvim-sshfs/lua/sshfs/window.lua:31: in function 'set_content'
...vim/site/pack/packer/start/nvim-sshfs/lua/sshfs/init.lua:51: in function 'open_hosts'
[string ":lua"]:1: in main chunk
Hi @DanielWeidinger,
First of all, thanks for this amazing plugin. I have a small feature request:
My .ssh/config looks like this:
IgnoreUnknown Include
Include "/home/simon/.ssh/config.d/*"
Ssh works flawlessly but nvim-sshfs show some lua errors and shows an empty list of targets. I would really like to see support for Include directives.
Cheers Simon
2023-03-02T09:34:46 Error ๏ ERROR Error executing Lua callback: .../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:32: Vim(lua):E5108: Error executing lua ...on/.local/share/nvim/lazy/nvim-sshfs/lua/sshfs/utils.lua:110: Expected Lua number
stack traceback:
[C]: in function 'nvim_win_get_width'
...on/.local/share/nvim/lazy/nvim-sshfs/lua/sshfs/utils.lua:110: in function 'formatted_lines'
...zon/.local/share/nvim/lazy/nvim-sshfs/lua/sshfs/init.lua:47: in function 'open_hosts'
[string ":lua"]:1: in main chunk
[C]: in function 'cmd'
.../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:32: in function <.../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:16>
stack traceback:
[C]: in function 'cmd'
.../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:32: in function <.../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:16>
Fresh install of the plugin. My hosts file contains a single entry, but the error seems like it might be a Lua change?
Hello, and thanks for an amazing plugin.
I heavily utilize the ssh -F /path/to/.ssh/config
flag to separate my own hosts from my work hosts.
Would be great if this plugin supported declaring an ssh config location, even better if it could be set with a command at any time.
It's easier with e.g. git
as it supports ENV
configuration, so I can just set runtime vim.env.GIT_CONFIG_GLOBAL
in init.lua
and all my git
-related plugins inside the Neovim instance work as expected as this is handled by the git
executable they run under the hood.
Unfortunately, AFAIK ssh does not support ENV
configuration, only command flag, so this has to be handled by the wrapper.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.