Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 905 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 905 Bytes

Float Code

GitHub Workflow Status Lua

A neovim plugin to show code snippet in float window

Using it

configurations:

return {
  "joyme123/float-code.nvim",
  branch="main",
  config = function()
    require("float-code").setup()
    vim.keymap.set({'n', 'v'}, '<Leader>fc', require('float-code').show_float_code_window, {noremap = true, silent = true})
    vim.keymap.set({'n', 'v'}, '<Leader>fw', require('float-code').show_float_window, {noremap = true, silent = true})
  end,
}

Use v to enter visual mode and select text, then use <Esc> to exit visual mode.

use <Leader>fc to show select lines in a float window

float-code