vimwiki

Mkdocs for material has replaced vimwiki for me. But I still use it for the useful bindings it sets. But some of its bindings conflicted with those of other plugins, notably oil.lua. My vimwiki.lua that addresses this issue:

-- Define a function to remove the binding
local function remove_binding()
    vim.api.nvim_buf_set_keymap(0, 'n', '<YourBindingToRemove>', '<Nop>', {noremap = true, silent = true})
end

-- Set autocmd to trigger the function for Markdown files
vim.cmd[[
    augroup MarkdownSettings
        autocmd!
        autocmd FileType markdown lua remove_binding()
    augroup END
]]

source: reddit


Comments