Browse Source

✨feat: add michaelrommel/nvim-silicon plugin

Naz 2 months ago
parent
commit
b4d992ea03
2 changed files with 15 additions and 0 deletions
  1. 4 0
      lua/config/mappings.lua
  2. 11 0
      lua/plugins/silicon.lua

+ 4 - 0
lua/config/mappings.lua

@@ -61,3 +61,7 @@ end, { desc = "Harpoon Next" })
 
 vim.keymap.set("n", "<C-n>", ":Neotree filesystem toggle float<CR>", { desc = "Toggle Neotree Filesystem" })
 vim.keymap.set("n", "<C-b>", ":Neotree buffers toggle float<CR>", { desc = "Toggle Neotree Buffers" })
+
+-- silicon keymaps
+
+vim.api.nvim_set_keymap("v", "<leader>s", ":'<,'>Silicon<CR>", { noremap = true, silent = true, desc = "Silicon" })

+ 11 - 0
lua/plugins/silicon.lua

@@ -0,0 +1,11 @@
+return {
+  "michaelrommel/nvim-silicon",
+  lazy = true,
+  cmd = "Silicon",
+  config = function()
+    require("silicon").setup({
+      font = "CaskaydiaCove NF=34;Noto Color Emoji=34",
+      background = "#d79921",
+    })
+  end
+}