diff --git a/lua/plugins/comment.lua b/lua/plugins/comment.lua index b90706a..97905b1 100644 --- a/lua/plugins/comment.lua +++ b/lua/plugins/comment.lua @@ -1,10 +1,8 @@ return { 'numToStr/Comment.nvim', - config = function() - require('Comment').setup({ - mappings = false, - }) - end, + opts = { + mappings = false, + }, keys = { { '', diff --git a/lua/plugins/indent_blankline.lua b/lua/plugins/indent_blankline.lua index c7c41d0..8945707 100644 --- a/lua/plugins/indent_blankline.lua +++ b/lua/plugins/indent_blankline.lua @@ -3,18 +3,18 @@ return { dependencies = { 'nvim-treesitter/nvim-treesitter', }, + opts = { + show_end_of_line = true, + use_treesitter = true, + show_current_context = true, + context_patterns = { 'class', 'function', 'method', 'block', '^if', '^for', '^while' }, + + }, config = function() local opt = vim.opt -- to set options opt.listchars:append('eol:↴') -- opt.listchars:append("space: ") opt.listchars:append('trail: ') opt.listchars:append('tab:→ ') - - require('indent_blankline').setup({ - show_end_of_line = true, - use_treesitter = true, - show_current_context = true, - context_patterns = { 'class', 'function', 'method', 'block', '^if', '^for', '^while' }, - }) end, }