dotfiles/home/.config/nvim/lua/pluginconf/commentary.lua

10 lines
282 B
Lua
Raw Normal View History

local vim = require("vim")
local cmd = vim.cmd
2021-12-06 12:18:36 +00:00
-- Set up shortcuts to quickly comment some code
2021-12-05 21:33:23 +00:00
Keymap("n", "<A-/>", ":Commentary<CR>")
Keymap("v", "<A-/>", ":Commentary<CR>")
2021-12-06 12:18:36 +00:00
-- Set up comments for unhandled file types
cmd[[autocmd FileType apache setlocal commentstring=#\ %s]]