refactor(nvim): use silicon.lua instead of vimscript
This commit is contained in:
parent
02c32b4e8f
commit
52b70b8382
@ -238,3 +238,7 @@ wk.register({
|
|||||||
}, { prefix = "<leader>" })
|
}, { prefix = "<leader>" })
|
||||||
vim.keymap.set("n", "<leader>or", vim.cmd.OverseerRun, { silent = true, desc = "Overseer: Run" })
|
vim.keymap.set("n", "<leader>or", vim.cmd.OverseerRun, { silent = true, desc = "Overseer: Run" })
|
||||||
vim.keymap.set("n", "<leader>ot", vim.cmd.OverseerToggle, { silent = true, desc = "Overseer: Toggle" })
|
vim.keymap.set("n", "<leader>ot", vim.cmd.OverseerToggle, { silent = true, desc = "Overseer: Toggle" })
|
||||||
|
|
||||||
|
vim.keymap.set("v", "<leader>sc", function()
|
||||||
|
require("silicon").visualise_api({ to_clip = true })
|
||||||
|
end, { silent = true, desc = "Silicon: Copy" })
|
||||||
|
@ -102,7 +102,7 @@ return packer.startup({
|
|||||||
run = ":TSUpdate",
|
run = ":TSUpdate",
|
||||||
requires = {
|
requires = {
|
||||||
"p00f/nvim-ts-rainbow",
|
"p00f/nvim-ts-rainbow",
|
||||||
"nvim-treesitter/nvim-treesitter-context"
|
"nvim-treesitter/nvim-treesitter-context",
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
require("plugins.configs.treesitter")
|
require("plugins.configs.treesitter")
|
||||||
@ -704,16 +704,11 @@ return packer.startup({
|
|||||||
|
|
||||||
-- Take a screenshot of code selected
|
-- Take a screenshot of code selected
|
||||||
use({
|
use({
|
||||||
"segeljakt/vim-silicon",
|
"treatybreaker/fix-wl-copy-date-formatting",
|
||||||
|
requires = { "nvim-lua/plenary.nvim" },
|
||||||
config = function()
|
config = function()
|
||||||
vim.g.silicon = {
|
require("silicon").setup({})
|
||||||
theme = "Coldark-Dark",
|
|
||||||
}
|
|
||||||
end,
|
end,
|
||||||
cmd = {
|
|
||||||
"Silicon",
|
|
||||||
"SiliconHighlight",
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Nice sidebar cursor goodies
|
-- Nice sidebar cursor goodies
|
||||||
@ -765,7 +760,7 @@ return packer.startup({
|
|||||||
|
|
||||||
-- Better buffer deletion
|
-- Better buffer deletion
|
||||||
use({
|
use({
|
||||||
'famiu/bufdelete.nvim'
|
"famiu/bufdelete.nvim",
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Leave at end!!!
|
-- Leave at end!!!
|
||||||
|
Loading…
x
Reference in New Issue
Block a user