Coder Social home page Coder Social logo

nvim-sshfs's Introduction

nvim-sshfs's People

Contributors

danielweidinger avatar watzon avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

watzon

nvim-sshfs's Issues

Error attempt to concatenate field 'hostname'

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

Feature request: Support Include directives in .ssh/config

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

Error on neovim nightly

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?

Feature Request: Support custom ssh config location

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.