.config/nvim/lua/kamu/plugins/comments.lua aktualisiert

This commit is contained in:
2024-03-30 03:48:31 +01:00
parent 0512dbb458
commit 8a367690b0
2 changed files with 31 additions and 4 deletions

View File

@@ -0,0 +1,31 @@
return {
'numToStr/Comment.nvim',
opts = {
-- add any options here
},
config = function()
-- vim.bo.commentstring = '//%s'
-- vim.api.nvim_command('set commentstring=//%s')
-- or
-- local ft = require('Comment.ft')
-- -- 1. Using set function
-- ft
-- -- Set only line comment
-- .set('yaml', '#%s')
-- -- Or set both line and block commentstring
-- .set('javascript', {'//%s', '/*%s*/'})
-- -- 2. Metatable magic
-- ft.javascript = {'//%s', '/*%s*/'}
-- ft.yaml = '#%s'
-- -- Multiple filetypes
-- ft({'go', 'rust'}, ft.get('c'))
-- ft({'toml', 'graphql'}, '#%s')
end,
lazy = false,
}

View File

@@ -1,4 +0,0 @@
return {
'tpope/vim-commentary',
event = 'VeryLazy',
}