hoschi / yode-nvim

Yode plugin for NeoVim
MIT License
371 stars 3 forks source link

The floating window is not expandable #17

Closed jonahfang closed 1 year ago

jonahfang commented 1 year ago

I use this plugin with Lazy.nvim:

return {
  "hoschi/yode-nvim",
  keys = {
     {',n', "<cmd>YodeCreateSeditorFloating<cr>",mode={'n','x'}},
  },
  config = function()
      require('yode-nvim').setup({})

      vim.cmd([[
        set showtabline=2
      ]])
  end
}
-- EOP

When I selected more than one lines and press ',n', the floating window was only one line height and show the last line like this:

image
hoschi commented 1 year ago

That is expexted. Without a range specified, it defaults to 1. You need to either use visual mode or type in a count before issuing it in normal Mode.

jonahfang commented 1 year ago

@hoschi , thanks for reply. Could you explain more detail?

hoschi commented 1 year ago

Type 10,n which should create a ten line seditor. Does this work with your setup?

jonahfang commented 1 year ago

Where to put 10,n ?

jonahfang commented 1 year ago

I has solved this problem, same as https://github.com/hoschi/yode-nvim/issues/9, use : to replace <cmd> and it works!