CMD no longer aborts on ESC (was conflicting), added color scheme toggle <leader>m
This commit is contained in:
@@ -26,6 +26,15 @@ vim.keymap.set('n', '<leader>c', ":Calendar -split=horizontal -position=below -h
|
||||
-- Open current file in browser (chromium)
|
||||
vim.keymap.set('n', '<space>o', ":silent !chromium '%'<cr>", { desc = "Open in browser" })
|
||||
|
||||
-- toggle colorscheme between dark and light
|
||||
vim.keymap.set('n', '<leader>m', function()
|
||||
if vim.opt.background:get() == "dark" then
|
||||
vim.o.background = "light"
|
||||
else
|
||||
vim.o.background = "dark"
|
||||
end
|
||||
end, { desc = "Toggle dark/light mode" })
|
||||
|
||||
--
|
||||
-- configure workspaces
|
||||
-- also add a custom picker to fzf
|
||||
@@ -47,7 +56,7 @@ local workspaces_fzf_picker = function(opts)
|
||||
for i = 1, #ws do
|
||||
fzf_cb(ws[i].name)
|
||||
end
|
||||
fzf_cb() -- EOF
|
||||
fzf_cb() -- EOF
|
||||
end, opts)
|
||||
end
|
||||
vim.keymap.set('n', '<leader>w', workspaces_fzf_picker, { desc = "Workspaces" })
|
||||
|
||||
Reference in New Issue
Block a user