dotfiles/home/.config/nvim/lua/plugins.d/commentary.lua

10 lines
211 B
Lua

local vim = require("vim")
local cmd = vim.cmd
cmd[[Plug 'tpope/vim-commentary']]
nmap("<A-/>", ":Commentary<CR>")
vmap("<A-/>", ":Commentary<CR>")
cmd[[autocmd FileType apache setlocal commentstring=#\ %s]]