more neovim plugins
This commit is contained in:
parent
bbf6641115
commit
ef84f5b008
10 changed files with 81 additions and 18 deletions
15
.config/nvim/lua/klowner/plugins/comment.lua
Normal file
15
.config/nvim/lua/klowner/plugins/comment.lua
Normal file
|
@ -0,0 +1,15 @@
|
|||
return {
|
||||
"numToStr/Comment.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
dependencies = {
|
||||
"JoosepAlviste/nvim-ts-context-commentstring",
|
||||
},
|
||||
config = function ()
|
||||
-- <leader>cc
|
||||
local comment = require "Comment"
|
||||
local ts_context_commentstring = require "ts_context_commentstring.integrations.comment_nvim"
|
||||
comment.setup({
|
||||
pre_hook = ts_context_commentstring.create_pre_hook(),
|
||||
})
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue