Skip to content

paytonward6/nvim-wezlime

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 

Repository files navigation

nvim-wezlime

Slime implementation for Wezterm

Installation

Packer

require("packer").startup(function()
  use({
    "paytonward6/nvim-wezlime",
    config = function()
      require("wezlime").setup({
        -- default mappings
        relative_direction = "right"
      })
    end,
  })
end)

Configuration

Commands

  • Wezlime send: sends the current paragraph (or visual selection) to target pane
  • Wezlime send_line: sends the current line (or visual selection) to target pane
  • Wezlime reload_pane: recomputes target pane's ID and caches it
  • Wezlime set_pane <PANE ID: int>: manually set the target pane to <PANE ID: int>
  • Wezlime get_pane: get the ID of the target pane

Example keymaps

local opts = { noremap = true, silent = true }

-- Must use `:` instead of `<Cmd>` or visual mode will not work properly
vim.keymap.set({"n", "v"}, "<leader>ee", ":Wezlime send<CR>", opts)
vim.keymap.set({"n", "v"}, "<leader>e.", ":Wezlime send_line<CR>", opts)

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages