#org-config #neovim
Published — Updated

lua/tools.lua contains helper functions that don’t rely on external plugins.

local M = {}


return M

Although — yeah. It’s just the one function right now.

map streamlines creation of keyboard mappings with noremap option enabled by default. This probably already exists in a plugin somewhere. One step at a time. I’m just copying and pasting from other people’s blog posts right now.

function, lhs, rhs, opts)
  local options = {noremap = true}

  if opts then options = vim.tbl_extend('force', options, opts) end
  vim.api.nvim_set_keymap(mode, lhs, rhs, options)