refactor(nvim): use rust-based plugin for silicon support
This commit is contained in:
parent
d713194920
commit
34db1103dc
@ -216,6 +216,4 @@ wk.register({
|
|||||||
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()
|
vim.keymap.set("v", "<leader>sc", "<cmd>Silicon<CR>", { silent = true, desc = "Silicon: Copy" })
|
||||||
require("silicon").visualise_api({ to_clip = true })
|
|
||||||
end, { silent = true, desc = "Silicon: Copy" })
|
|
||||||
|
@ -751,11 +751,23 @@ lazy.setup({
|
|||||||
|
|
||||||
-- Take a screenshot of code selected
|
-- Take a screenshot of code selected
|
||||||
{
|
{
|
||||||
"NarutoXY/silicon.lua",
|
"krivahtoo/silicon.nvim",
|
||||||
event = "VeryLazy",
|
build = "./install.sh build",
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
|
||||||
config = function()
|
config = function()
|
||||||
require("silicon").setup({})
|
require("silicon").setup({
|
||||||
|
font = "Hack=20",
|
||||||
|
theme = "Monokai Extended",
|
||||||
|
background = "#87F",
|
||||||
|
pad_vert = 60,
|
||||||
|
pad_horiz = 40,
|
||||||
|
line_number = true,
|
||||||
|
watermark = {
|
||||||
|
text = "Test",
|
||||||
|
},
|
||||||
|
window_title = function()
|
||||||
|
return vim.fn.fnamemodify(vim.fn.bufname(vim.fn.bufnr()), ":~:.")
|
||||||
|
end,
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
@ -818,7 +830,7 @@ lazy.setup({
|
|||||||
-- Improved Visuals for Documentation
|
-- Improved Visuals for Documentation
|
||||||
{
|
{
|
||||||
"lukas-reineke/headlines.nvim",
|
"lukas-reineke/headlines.nvim",
|
||||||
after = { "nvim-treesitter"},
|
after = { "nvim-treesitter" },
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
config = function()
|
config = function()
|
||||||
require("headlines").setup()
|
require("headlines").setup()
|
||||||
|
Loading…
Reference in New Issue
Block a user