Add lazy and plugins dir
This commit is contained in:
parent
1dacc4c2d3
commit
a467ba4a69
25 changed files with 1393 additions and 0 deletions
19
lua/rakshit/plugins/comment.lua
Normal file
19
lua/rakshit/plugins/comment.lua
Normal file
|
|
@ -0,0 +1,19 @@
|
|||
return {
|
||||
'numToStr/Comment.nvim',
|
||||
event = { 'BufReadPre', 'BufNewFile' },
|
||||
dependencies = {
|
||||
'JoosepAlviste/nvim-ts-context-commentstring',
|
||||
},
|
||||
config = function()
|
||||
-- import comment plugin safely
|
||||
local comment = require 'Comment'
|
||||
|
||||
local ts_context_commentstring = require 'ts_context_commentstring.integrations.comment_nvim'
|
||||
|
||||
-- enable comment
|
||||
comment.setup {
|
||||
-- for commenting tsx, jsx, svelte, html files
|
||||
pre_hook = ts_context_commentstring.create_pre_hook(),
|
||||
}
|
||||
end,
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue