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>" })
|
||||
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("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",
|
||||
requires = {
|
||||
"p00f/nvim-ts-rainbow",
|
||||
"nvim-treesitter/nvim-treesitter-context"
|
||||
"nvim-treesitter/nvim-treesitter-context",
|
||||
},
|
||||
config = function()
|
||||
require("plugins.configs.treesitter")
|
||||
@ -704,16 +704,11 @@ return packer.startup({
|
||||
|
||||
-- Take a screenshot of code selected
|
||||
use({
|
||||
"segeljakt/vim-silicon",
|
||||
"treatybreaker/fix-wl-copy-date-formatting",
|
||||
requires = { "nvim-lua/plenary.nvim" },
|
||||
config = function()
|
||||
vim.g.silicon = {
|
||||
theme = "Coldark-Dark",
|
||||
}
|
||||
require("silicon").setup({})
|
||||
end,
|
||||
cmd = {
|
||||
"Silicon",
|
||||
"SiliconHighlight",
|
||||
},
|
||||
})
|
||||
|
||||
-- Nice sidebar cursor goodies
|
||||
@ -765,7 +760,7 @@ return packer.startup({
|
||||
|
||||
-- Better buffer deletion
|
||||
use({
|
||||
'famiu/bufdelete.nvim'
|
||||
"famiu/bufdelete.nvim",
|
||||
})
|
||||
|
||||
-- Leave at end!!!
|
||||
|
Loading…
x
Reference in New Issue
Block a user