update nvim plugin configs
This commit is contained in:
@@ -1,25 +1,12 @@
|
||||
return {
|
||||
'windwp/nvim-ts-autotag',
|
||||
ft = {
|
||||
'astro',
|
||||
'glimmer',
|
||||
'handlebars',
|
||||
'html',
|
||||
'javascript',
|
||||
'jsx',
|
||||
'markdown',
|
||||
'php',
|
||||
'rescript',
|
||||
'svelte',
|
||||
'tsx',
|
||||
'twig',
|
||||
'typescript',
|
||||
'vue',
|
||||
'xml',
|
||||
},
|
||||
dependencies = { 'nvim-treesitter/nvim-treesitter' },
|
||||
event = { 'BufReadPre', 'BufNewFile' },
|
||||
opts = {
|
||||
opts = {
|
||||
enable_close = true,
|
||||
enable_rename = true,
|
||||
enable_close_on_slash = true,
|
||||
},
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -1,6 +1,5 @@
|
||||
return {
|
||||
'nvim-treesitter/nvim-treesitter-context',
|
||||
enabled = false,
|
||||
dependencies = {
|
||||
'nvim-treesitter/nvim-treesitter',
|
||||
},
|
||||
@@ -8,8 +7,9 @@ return {
|
||||
config = true,
|
||||
opts = {
|
||||
enable = true,
|
||||
mode = 'cursor',
|
||||
line_numbers = true,
|
||||
mode = 'topline',
|
||||
max_lines = 3,
|
||||
-- separator = '',
|
||||
separator = '',
|
||||
},
|
||||
}
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
return {
|
||||
'nvim-treesitter/nvim-treesitter-refactor',
|
||||
event = { 'BufReadPost', 'BufWritePost', 'BufNewFile' },
|
||||
dependencies = 'nvim-treesitter',
|
||||
event = { 'BufReadPre', 'BufNewFile' },
|
||||
dependencies = { 'nvim-treesitter/nvim-treesitter' },
|
||||
opts = {
|
||||
refactor = {
|
||||
highlight_definitions = {
|
||||
@@ -32,4 +32,4 @@ return {
|
||||
config = function(_, opts)
|
||||
require('nvim-treesitter.configs').setup(opts)
|
||||
end,
|
||||
}
|
||||
}
|
||||
@@ -57,13 +57,13 @@ return {
|
||||
enable = true,
|
||||
swap_next = {
|
||||
['<leader>na'] = '@parameter.inner', -- swap parameters/argument with next
|
||||
['<leader>n:'] = '@property.outer', -- swap object property with next
|
||||
['<leader>nm'] = '@function.outer', -- swap function with next
|
||||
['<leader>n:'] = '@property.outer', -- swap object property with next
|
||||
['<leader>nm'] = '@function.outer', -- swap function with next
|
||||
},
|
||||
swap_previous = {
|
||||
['<leader>pa'] = '@parameter.inner', -- swap parameters/argument with prev
|
||||
['<leader>p:'] = '@property.outer', -- swap object property with prev
|
||||
['<leader>pm'] = '@function.outer', -- swap function with previous
|
||||
['<leader>p:'] = '@property.outer', -- swap object property with prev
|
||||
['<leader>pm'] = '@function.outer', -- swap function with previous
|
||||
},
|
||||
},
|
||||
move = {
|
||||
@@ -121,7 +121,7 @@ return {
|
||||
},
|
||||
|
||||
config = function(_, opts)
|
||||
require('nvim-treesitter.configs').setup(opts)
|
||||
-- require('nvim-treesitter.configs').setup(opts)
|
||||
|
||||
local ts_repeat_move = require('nvim-treesitter.textobjects.repeatable_move')
|
||||
|
||||
@@ -158,4 +158,4 @@ return {
|
||||
vim.keymap.set({ 'n', 'x', 'o' }, ']b', next_buffer)
|
||||
vim.keymap.set({ 'n', 'x', 'o' }, '[b', prev_buffer)
|
||||
end,
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user