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

11 lines
324 B
Lua
Raw Normal View History

local m = require("utility.mappings")
local vim = require("vim")
local cmd = vim.cmd
2021-12-06 12:18:36 +00:00
-- Set up shortcuts to quickly comment some code
m.keymap("n", "<A-/>", ":Commentary<CR>")
m.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]]