update comments

This commit is contained in:
Chris 2021-03-15 10:46:53 -04:00
parent 4111b28ae8
commit 4ed47a3471
2 changed files with 3 additions and 14 deletions

View file

@ -27,7 +27,6 @@ sudo rm -r neovim
- add lots of lsp
- configure neogit
- configure git blame
- prefer single line comments kommentary
- move language servers not installed with npm to neovim local share location
- react commenting
- add license

View file

@ -1,16 +1,6 @@
vim.g.kommentary_create_default_mappings = false
vim.api.nvim_set_keymap("n", "<leader>/", "<Plug>kommentary_line_default", {})
--vim.api.nvim_set_keymap("n", "<leader>c", "<Plug>kommentary_motion_default", {})
vim.api.nvim_set_keymap("v", "<leader>/", "<Plug>kommentary_visual_default", {})
--[[vim.cmd([[
function! Comment()
if (mode() == "n" )
execute "Commentary"
else
execute "'<,'>Commentary"
endif
endfunction
vnoremap <silent> <space>/ :call Comment()
autocmd! BufRead,BufNewFile *.{jsx,jx,js} setlocal filetype=javascript.jsx
autocmd FileType javascript.jsx setlocal commentstring={/*\ %s\ */}
]]
require('kommentary.config').configure_language("default", {
prefer_single_line_comments = true,
})