Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions lua/remote-sshfs/pickers/snacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ function M.connect(opts)
return
end
local lines = build_host_preview(hosts, ctx.item.name)
vim.bo[ctx.buf].modifiable = true -- avoid Snacks.nvim tossing an error due to the buffer being readonly
vim.api.nvim_buf_set_lines(ctx.buf, 0, -1, false, lines)
vim.bo[ctx.buf].filetype = "sshconfig"
Comment on lines 94 to 97
return true
Expand Down Expand Up @@ -138,6 +139,7 @@ function M.edit(opts)
return
end

vim.bo[ctx.buf].modifiable = true -- avoid Snacks.nvim tossing an error due to the buffer being readonly
vim.api.nvim_buf_set_lines(ctx.buf, 0, -1, false, lines)
vim.bo[ctx.buf].filetype = "sshconfig"
Comment on lines +142 to 144
return true
Expand Down
Loading