Olical / aniseed

Neovim configuration and plugins in Fennel (Lisp compiled to Lua)
https://discord.gg/wXAMr8F
The Unlicense
606 stars 28 forks source link

aniseed.nvim.nvim_buf_set_keymap missing? #86

Closed zbouslikhin closed 2 years ago

zbouslikhin commented 2 years ago

I'm currently trying to configure an nvim plugin that involves using the function nvim_buf_set_keymap. Using aniseed, I'm exporting nvim to use that function. However, it looks like the function does not exist (returns "attempt to call field nvim_buf_set_keymap (a nil value)". The code is looking like this:

(module config.plugin.toggletermPref
  {autoload 
   {toggletermPref toggleterm
    nvim aniseed.nvim}})

(local opts {:noremap true})    
(nvim.nvim_buf_set_keymap 0 :t :<esc> "<C-\\><C-n>" opts)

image

Olical commented 2 years ago

I think that's just nvim.buf_set_keymap, it's like the nvim prefix is dropped over the entire API when using that nvim wrapper module.

Olical commented 2 years ago

Closing since this is a docs issue more than anything. It's nvim.buf_set_keymap, not nvim.nvim_buf_set_keymap