use more lazu opt fields
This commit is contained in:
parent
e8f5e62439
commit
7c8bf66b37
@ -1,10 +1,8 @@
|
|||||||
return {
|
return {
|
||||||
'numToStr/Comment.nvim',
|
'numToStr/Comment.nvim',
|
||||||
config = function()
|
opts = {
|
||||||
require('Comment').setup({
|
|
||||||
mappings = false,
|
mappings = false,
|
||||||
})
|
},
|
||||||
end,
|
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
'<c-c>',
|
'<c-c>',
|
||||||
|
@ -3,18 +3,18 @@ return {
|
|||||||
dependencies = {
|
dependencies = {
|
||||||
'nvim-treesitter/nvim-treesitter',
|
'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()
|
config = function()
|
||||||
local opt = vim.opt -- to set options
|
local opt = vim.opt -- to set options
|
||||||
opt.listchars:append('eol:↴')
|
opt.listchars:append('eol:↴')
|
||||||
-- opt.listchars:append("space: ")
|
-- opt.listchars:append("space: ")
|
||||||
opt.listchars:append('trail: ')
|
opt.listchars:append('trail: ')
|
||||||
opt.listchars:append('tab:→ ')
|
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,
|
end,
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user