hoschi / yode-nvim

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

#14 make buffer mappings configurable #15

Open hoschi opened 1 year ago

hoschi commented 1 year ago

This makes buffer mappings configurable. Set own mappings by:

"------------------------------
"yode-nvim
"------------------------------
lua << EOF
require('yode-nvim').setup({
    handlers = {
        onSeditorBufCal = function()
            vim.cmd([[
                imap <buffer> <leader>bly <esc>:YodeGoToAlternateBuffer t<cr>
            ]])
        end,
    },
})
EOF

Disable the mappings by:

"------------------------------
"yode-nvim
"------------------------------
lua << EOF
require('yode-nvim').setup({
    handlers = {
        onSeditorBufCal = function()
        end,
    },
})
EOF