1
0
Fork 0

nvim: nerd fonts 3

This commit is contained in:
Vladimír Dudr 2023-05-29 08:57:23 +02:00
parent a755c2b7de
commit 0f3d0b27a2
2 changed files with 22 additions and 11 deletions

View file

@ -1,6 +1,7 @@
[
(property_declaration)
; (field_declaration)
(variable_declaration)
(accessor_declaration)
; (declaration_list)
@ -48,6 +49,8 @@
(interface_declaration body: _ @indent.begin)
(enum_declaration body: _ @indent.begin)
(property_declaration (accessor_list "{" @indent.branch) @indent.dedent)
(switch_section
(case_switch_label) (case_switch_label) @indent.branch)
@ -90,7 +93,7 @@
(using_statement
body: (block "{" @indent.branch))
["catch" "finally" "else" "}" "]" ] @indent.branch
["catch" "finally" "else" "}" "]" ")" ] @indent.branch
["}" ")" "]" ] @indent.end

View file

@ -31,18 +31,26 @@ return {
{
'chrisgrieser/nvim-various-textobjs',
keys = {
{ 'ii', function() require('various-textobjs').indentation(true, true) end, mode = { 'o', 'x' },
desc =
'Inside indent' },
{ 'ai', function() require('various-textobjs').indentation(false, false) end, mode = { 'o', 'x' },
desc =
'Around indent' },
{
'ii',
function() require('various-textobjs').indentation(true, true) end,
mode = { 'o', 'x' },
desc =
'Inside indent',
},
{
'ai',
function() require('various-textobjs').indentation(false, false) end,
mode = { 'o', 'x' },
desc =
'Around indent',
},
-- { 'iI', function() require('various-textobjs').indentation(true, true) end, mode = { 'o', 'x' }, desc = '' },
-- { 'aI', function() require('various-textobjs').indentation(false, false) end, mode = { 'o', 'x' }, desc = '' },
{ 'iS', function() require('various-textobjs').subword(true) end, mode = { 'o', 'x' }, desc = '' },
{ 'aS', function() require('various-textobjs').subword(false) end, mode = { 'o', 'x' }, desc = '' },
{ '|', function() require('various-textobjs').column() end, mode = { 'o', 'x' }, desc = '' },
{ 'L', function() require('various-textobjs').url() end, mode = { 'o', 'x' }, desc = '' },
{ 'iS', function() require('various-textobjs').subword(true) end, mode = { 'o', 'x' }, desc = '' },
{ 'aS', function() require('various-textobjs').subword(false) end, mode = { 'o', 'x' }, desc = '' },
{ '|', function() require('various-textobjs').column() end, mode = { 'o', 'x' }, desc = '' },
{ 'L', function() require('various-textobjs').url() end, mode = { 'o', 'x' }, desc = '' },
-- {"YOUR_MAPPING",function() require("various-textobjs").toNextClosingBracket() end, mode = { "o", "x" }, desc = "" },
-- {"YOUR_MAPPING",function() require("various-textobjs").restOfParagraph() end, mode = { "o", "x" }, desc = "" },
-- {"YOUR_MAPPING",function() require("various-textobjs").entireBuffer() end, mode = { "o", "x" }, desc = "" },