ascension (re enable primary c+p, treesitter textobjects
This commit is contained in:
1 parent
96c139a62e
commit
84782e1599
11 files changed
+126
-58
No files matched your search
+61
-13
@@ -10,14 +10,6 @@ return {
|
||||
require("config.theme")
|
||||
end
|
||||
},
|
||||
{
|
||||
"norcalli/nvim-colorizer.lua",
|
||||
config = function()
|
||||
if vim.o.termguicolors then
|
||||
require("colorizer").setup()
|
||||
end
|
||||
end
|
||||
},
|
||||
{
|
||||
"nvim-lualine/lualine.nvim",
|
||||
dependencies = { "kyazdani42/nvim-web-devicons" },
|
||||
@@ -29,6 +21,14 @@ return {
|
||||
}
|
||||
end
|
||||
},
|
||||
{
|
||||
"norcalli/nvim-colorizer.lua",
|
||||
config = function()
|
||||
if vim.o.termguicolors then
|
||||
require("colorizer").setup()
|
||||
end
|
||||
end
|
||||
},
|
||||
{
|
||||
"lewis6991/gitsigns.nvim",
|
||||
config = function()
|
||||
@@ -37,6 +37,59 @@ return {
|
||||
})
|
||||
end
|
||||
},
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
lazy = false,
|
||||
enabled = true,
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter" },
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup {
|
||||
highlight = { enable = true },
|
||||
textobjects = {
|
||||
move = {
|
||||
enable = true,
|
||||
set_jumps = true, -- whether to set jumps in the jumplist
|
||||
goto_next_start = {
|
||||
["]f"] = "@function.outer",
|
||||
["]]"] = "@class.outer",
|
||||
},
|
||||
goto_next_end = {
|
||||
["]F"] = "@function.outer",
|
||||
["]["] = "@class.outer",
|
||||
},
|
||||
goto_previous_start = {
|
||||
["[f"] = "@function.outer",
|
||||
["[["] = "@class.outer",
|
||||
},
|
||||
goto_previous_end = {
|
||||
["[F"] = "@function.outer",
|
||||
["[]"] = "@class.outer",
|
||||
},
|
||||
},
|
||||
select = {
|
||||
enable = true,
|
||||
lookahead = true,
|
||||
keymaps = {
|
||||
["af"] = "@function.outer",
|
||||
["if"] = "@function.inner",
|
||||
["ac"] = "@class.outer",
|
||||
["ic"] = "@class.inner",
|
||||
},
|
||||
},
|
||||
swap = {
|
||||
enable = true,
|
||||
swap_next = {
|
||||
["<leader>so"] = "@parameter.inner",
|
||||
},
|
||||
swap_previous = {
|
||||
["<leader>sn"] = "@parameter.inner",
|
||||
},
|
||||
},
|
||||
|
||||
},
|
||||
}
|
||||
end
|
||||
},
|
||||
{
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
build = function()
|
||||
@@ -44,11 +97,6 @@ return {
|
||||
with_sync = true
|
||||
}
|
||||
end,
|
||||
config = function()
|
||||
require("nvim-treesitter.configs").setup {
|
||||
highlight = { enable = true }
|
||||
}
|
||||
end,
|
||||
},
|
||||
"elkowar/yuck.vim",
|
||||
"kmonad/kmonad-vim"
|
||||
|
||||
Reference in new issue
Block a user