remove: vim-bujo keybindings
This commit is contained in:
parent
2495f12a5a
commit
5b1b223636
1 changed files with 0 additions and 14 deletions
|
|
@ -52,20 +52,6 @@ vim.keymap.set("n", "<leader>bp", function()
|
||||||
vim.cmd("bp")
|
vim.cmd("bp")
|
||||||
end, {})
|
end, {})
|
||||||
|
|
||||||
-- vim-bujo keybindings
|
|
||||||
local function toggleTodo()
|
|
||||||
local line = vim.fn.getline(".")
|
|
||||||
if vim.fn.match(line, "- \\[ \\]") ~= -1 then
|
|
||||||
vim.fn.setline(".", vim.fn.substitute(line, "- \\[ \\]", "- [x]", ""))
|
|
||||||
else
|
|
||||||
vim.fn.setline(".", vim.fn.substitute(line, "- \\[x\\]", "- [ ]", ""))
|
|
||||||
end
|
|
||||||
end
|
|
||||||
vim.keymap.set("n", "<C-A>", "i- [ ] ")
|
|
||||||
vim.keymap.set("i", "<C-A>", "- [ ] ")
|
|
||||||
vim.keymap.set("n", "<C-Q>", function() toggleTodo() end)
|
|
||||||
vim.keymap.set("i", "<C-Q>", function() toggleTodo() end)
|
|
||||||
|
|
||||||
-- Define a function to execute the appropriate program based on file type
|
-- Define a function to execute the appropriate program based on file type
|
||||||
vim.keymap.set("n", "<leader>/", function()
|
vim.keymap.set("n", "<leader>/", function()
|
||||||
local filetype = vim.bo.filetype
|
local filetype = vim.bo.filetype
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue