nvim: plugin cleanup
This commit is contained in:
parent
b319a1cddc
commit
cd9de7e9b3
7 changed files with 10 additions and 73 deletions
|
@ -15,7 +15,7 @@
|
||||||
"hlargs.nvim": { "branch": "main", "commit": "88b925d699fb39633cdda02c24f0b3ba5d0e6964" },
|
"hlargs.nvim": { "branch": "main", "commit": "88b925d699fb39633cdda02c24f0b3ba5d0e6964" },
|
||||||
"inc-rename.nvim": { "branch": "main", "commit": "21c23c379342a731a0c90f226601ec0434627b26" },
|
"inc-rename.nvim": { "branch": "main", "commit": "21c23c379342a731a0c90f226601ec0434627b26" },
|
||||||
"indent-blankline.nvim": { "branch": "master", "commit": "8299fe7703dfff4b1752aeed271c3b95281a952d" },
|
"indent-blankline.nvim": { "branch": "master", "commit": "8299fe7703dfff4b1752aeed271c3b95281a952d" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "8aa90c34233f7de420b326de361137a571827d8c" },
|
"lazy.nvim": { "branch": "main", "commit": "6a18404b7d1c05f0d1f35f7b78bd5c282dff7a89" },
|
||||||
"lsp_lines.nvim": { "branch": "main", "commit": "ec98b45c8280e5ef8c84028d4f38aa447276c002" },
|
"lsp_lines.nvim": { "branch": "main", "commit": "ec98b45c8280e5ef8c84028d4f38aa447276c002" },
|
||||||
"lspkind-nvim": { "branch": "master", "commit": "c68b3a003483cf382428a43035079f78474cd11e" },
|
"lspkind-nvim": { "branch": "master", "commit": "c68b3a003483cf382428a43035079f78474cd11e" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "0050b308552e45f7128f399886c86afefc3eb988" },
|
"lualine.nvim": { "branch": "master", "commit": "0050b308552e45f7128f399886c86afefc3eb988" },
|
||||||
|
@ -34,7 +34,7 @@
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "9b8f5260f3e793e2dcb2899e0a5b944667a95cb2" },
|
"nvim-lspconfig": { "branch": "master", "commit": "9b8f5260f3e793e2dcb2899e0a5b944667a95cb2" },
|
||||||
"nvim-navic": { "branch": "master", "commit": "7e9d2b2b601149fecdccd11b516acb721e571fe6" },
|
"nvim-navic": { "branch": "master", "commit": "7e9d2b2b601149fecdccd11b516acb721e571fe6" },
|
||||||
"nvim-osc52": { "branch": "main", "commit": "27da4724a887dabed3768b41fa51c785cb62ef26" },
|
"nvim-osc52": { "branch": "main", "commit": "27da4724a887dabed3768b41fa51c785cb62ef26" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "4db66966720541c2286dc7451be3c8ff9f273bb9" },
|
"nvim-treesitter": { "branch": "master", "commit": "f475b24c81d64d64ab213a73882b7c4f3bbbf26a" },
|
||||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "fcd764507f723903af5507e141ea593e855b504a" },
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "fcd764507f723903af5507e141ea593e855b504a" },
|
||||||
"nvim-ts-autotag": { "branch": "main", "commit": "fdefe46c6807441460f11f11a167a2baf8e4534b" },
|
"nvim-ts-autotag": { "branch": "main", "commit": "fdefe46c6807441460f11f11a167a2baf8e4534b" },
|
||||||
"nvim-ts-context-commentstring": { "branch": "main", "commit": "a0f89563ba36b3bacd62cf967b46beb4c2c29e52" },
|
"nvim-ts-context-commentstring": { "branch": "main", "commit": "a0f89563ba36b3bacd62cf967b46beb4c2c29e52" },
|
||||||
|
|
|
@ -5,10 +5,10 @@ if not vim.loop.fs_stat(lazypath) then
|
||||||
end
|
end
|
||||||
vim.opt.runtimepath:prepend(lazypath)
|
vim.opt.runtimepath:prepend(lazypath)
|
||||||
|
|
||||||
|
-- require("lazy").setup("plugins")
|
||||||
|
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
spec = {
|
import = "plugins",
|
||||||
{ import = "plugins" },
|
|
||||||
},
|
|
||||||
defaults = { lazy = true },
|
defaults = { lazy = true },
|
||||||
checker = { enabled = true },
|
checker = { enabled = true },
|
||||||
performance = {
|
performance = {
|
||||||
|
|
|
@ -50,40 +50,6 @@ return {
|
||||||
opts = { snippet_engine = "luasnip" },
|
opts = { snippet_engine = "luasnip" },
|
||||||
},
|
},
|
||||||
|
|
||||||
{
|
|
||||||
"ThePrimeagen/refactoring.nvim",
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<leader>r",
|
|
||||||
function()
|
|
||||||
require("refactoring").select_refactor()
|
|
||||||
end,
|
|
||||||
mode = "v",
|
|
||||||
noremap = true,
|
|
||||||
silent = true,
|
|
||||||
expr = false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
opts = {},
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
|
||||||
"ThePrimeagen/refactoring.nvim",
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<leader>r",
|
|
||||||
function()
|
|
||||||
require("refactoring").select_refactor()
|
|
||||||
end,
|
|
||||||
mode = "v",
|
|
||||||
noremap = true,
|
|
||||||
silent = true,
|
|
||||||
expr = false,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
opts = {},
|
|
||||||
},
|
|
||||||
|
|
||||||
{
|
{
|
||||||
"smjonas/inc-rename.nvim",
|
"smjonas/inc-rename.nvim",
|
||||||
cmd = "IncRename",
|
cmd = "IncRename",
|
||||||
|
|
|
@ -6,6 +6,7 @@ end
|
||||||
|
|
||||||
local M = {
|
local M = {
|
||||||
"nvim-telescope/telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
|
lazy = false,
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-lua/popup.nvim",
|
"nvim-lua/popup.nvim",
|
||||||
"nvim-lua/plenary.nvim",
|
"nvim-lua/plenary.nvim",
|
||||||
|
|
|
@ -27,6 +27,7 @@ return {
|
||||||
"gomod",
|
"gomod",
|
||||||
"graphql",
|
"graphql",
|
||||||
"help",
|
"help",
|
||||||
|
"hcl",
|
||||||
"html",
|
"html",
|
||||||
"http",
|
"http",
|
||||||
"java",
|
"java",
|
||||||
|
@ -67,20 +68,16 @@ return {
|
||||||
enable = true,
|
enable = true,
|
||||||
use_languagetree = true,
|
use_languagetree = true,
|
||||||
},
|
},
|
||||||
|
|
||||||
indent = {
|
indent = {
|
||||||
enable = false,
|
enable = false,
|
||||||
},
|
},
|
||||||
|
|
||||||
context_commentstring = { enable = true, enable_autocmd = false },
|
context_commentstring = { enable = true, enable_autocmd = false },
|
||||||
|
|
||||||
playground = {
|
playground = {
|
||||||
enable = true,
|
enable = true,
|
||||||
disable = {},
|
disable = {},
|
||||||
updatetime = 25,
|
updatetime = 25,
|
||||||
persist_queries = false,
|
persist_queries = false,
|
||||||
},
|
},
|
||||||
|
|
||||||
incremental_selection = {
|
incremental_selection = {
|
||||||
enable = true,
|
enable = true,
|
||||||
keymaps = {
|
keymaps = {
|
||||||
|
@ -90,13 +87,11 @@ return {
|
||||||
node_decremental = "sa",
|
node_decremental = "sa",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
||||||
query_linter = {
|
query_linter = {
|
||||||
enable = true,
|
enable = true,
|
||||||
use_virtual_text = true,
|
use_virtual_text = true,
|
||||||
lint_events = { "BufWrite", "CursorHold" },
|
lint_events = { "BufWrite", "CursorHold" },
|
||||||
},
|
},
|
||||||
|
|
||||||
textobjects = {
|
textobjects = {
|
||||||
move = {
|
move = {
|
||||||
enable = true,
|
enable = true,
|
||||||
|
|
|
@ -1,24 +0,0 @@
|
||||||
local M = {
|
|
||||||
"folke/yanky.nvim",
|
|
||||||
}
|
|
||||||
|
|
||||||
function M.config()
|
|
||||||
require("yanky").setup({
|
|
||||||
ring = {
|
|
||||||
history_length = 100,
|
|
||||||
storage = "memory",
|
|
||||||
sync_with_numbered_registers = false,
|
|
||||||
cancel_event = "update",
|
|
||||||
},
|
|
||||||
})
|
|
||||||
|
|
||||||
vim.keymap.set({ "n", "x" }, "p", "<Plug>(YankyPutAfter)")
|
|
||||||
vim.keymap.set({ "n", "x" }, "P", "<Plug>(YankyPutBefore)")
|
|
||||||
vim.keymap.set({ "n", "x" }, "gp", "<Plug>(YankyGPutAfter)")
|
|
||||||
vim.keymap.set({ "n", "x" }, "gP", "<Plug>(YankyGPutBefore)")
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<c-p>", "<Plug>(YankyCycleForward)")
|
|
||||||
vim.keymap.set("n", "<c-n>", "<Plug>(YankyCycleBackward)")
|
|
||||||
end
|
|
||||||
|
|
||||||
return M
|
|
|
@ -1,8 +1,8 @@
|
||||||
local M = {
|
local M = {
|
||||||
"mcchrish/zenbones.nvim",
|
"mcchrish/zenbones.nvim",
|
||||||
event = "VeryLazy",
|
-- event = "VeryLazy",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"rktjmp/lush.nvim",
|
{ "rktjmp/lush.nvim" },
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -119,15 +119,14 @@ function M.config()
|
||||||
PMenuThumb({ bg = "#64B5F6" }),
|
PMenuThumb({ bg = "#64B5F6" }),
|
||||||
StatusLine({ base = base.VertSplit, fg = "#BCAAA4" }),
|
StatusLine({ base = base.VertSplit, fg = "#BCAAA4" }),
|
||||||
StatusLineNC({ base = base.VertSplit, fg = "#BCAAA4" }),
|
StatusLineNC({ base = base.VertSplit, fg = "#BCAAA4" }),
|
||||||
|
|
||||||
TreesitterContext({ bg = "#f0f0f0", fg = "#BCAAA4", gui = "bold,italic" }),
|
TreesitterContext({ bg = "#f0f0f0", fg = "#BCAAA4", gui = "bold,italic" }),
|
||||||
TreesitterContextLineNumber({ bg = "#f0f0f0", fg = "#979770", gui = "bold,italic" }),
|
TreesitterContextLineNumber({ bg = "#f0f0f0", fg = "#979770", gui = "bold,italic" }),
|
||||||
}
|
}
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Apply specs using lush tool-chain
|
-- Apply specs using lush tool-chain
|
||||||
vim.cmd("colorscheme zenbones")
|
|
||||||
lush.apply(lush.compile(specs))
|
lush.apply(lush.compile(specs))
|
||||||
|
vim.cmd("colorscheme zenbones")
|
||||||
end
|
end
|
||||||
|
|
||||||
return M
|
return M
|
||||||
|
|
Loading…
Reference in a new issue