require("transparent") vim.g.mapleader = " " vim.keymap.set("n", "b", ":lua ToggleTransparent()") -- nvim-tree bindings vim.keymap.set("n", "t", ":NvimTreeToggle") vim.keymap.set("n", "a", ":lua SpellToggle()") -- toggle spell check function SpellToggle() if vim.o.spell == nil or vim.o.spell then vim.o.spell = false else vim.o.spell = true end end -- markdown preview vim.keymap.set("n", "p", ":MarkdownPreviewToggle") -- custom shell script to move windows vim.cmd([[ function OpenMarkdownPreview (url) execute "silent ! markdown-preview.sh " . a:url endfunction ]]) vim.g.mkdp_browserfunc = 'OpenMarkdownPreview' -- git actions vim.keymap.set("n", "ga", ":Git add .") vim.keymap.set("n", "gm", ":Git commit")