Add motions to vim

This commit is contained in:
2023-02-22 15:19:04 +09:00
parent e002f427bf
commit 424fba524c
9 changed files with 201 additions and 14 deletions

View File

@@ -70,6 +70,9 @@ return {
yS = "Add Surroundings",
}
},
dependencies = {
"afreakk/unimpaired-which-key.nvim",
},
config = function(_, opts)
vim.opt["timeoutlen"] = 500
@@ -96,7 +99,7 @@ return {
p = { "Past from system clipboard" },
P = { "Past line from system clipboard" },
}, {
prefix = "<leader>"
prefix = "<leader>",
})
wk.register({
@@ -110,6 +113,50 @@ return {
["["] = { name = "+prev" },
["<leader>g"] = { name = "+git" },
})
local uwk = require("unimpaired-which-key")
wk.register(uwk.normal_mode)
wk.register(uwk.normal_and_visual_mode, { mode = { "n", "v" } })
end,
},
}
},
{
"NvChad/nvim-colorizer.lua",
event = "VeryLazy",
opts = {
filetypes = {
'*',
html = { names = true },
css = { names = true },
},
user_default_options = {
mode = "virtualtext",
RGB = true,
RRGGBB = true,
names = false,
RRGGBBAA = true,
AARRGGBB = true,
rgb_fn = true,
hsl_fn = true,
tailwind = true,
},
}
},
{
"stevearc/dressing.nvim",
lazy = true,
init = function()
---@diagnostic disable-next-line: duplicate-set-field
vim.ui.select = function(...)
require("lazy").load({ plugins = { "dressing.nvim" } })
return vim.ui.select(...)
end
---@diagnostic disable-next-line: duplicate-set-field
vim.ui.input = function(...)
require("lazy").load({ plugins = { "dressing.nvim" } })
return vim.ui.input(...)
end
end,
},
}