Added silicon for nvim

This commit is contained in:
vanten-s 2024-08-07 20:56:11 +02:00
parent b9515b1645
commit 2d42f9e209
Signed by: vanten-s
GPG key ID: DE3060396884D3F2
5 changed files with 19 additions and 0 deletions

View file

@ -2,5 +2,6 @@ require('vanten.after.treesitter')
require('vanten.after.lsp') require('vanten.after.lsp')
require('vanten.after.telescope') require('vanten.after.telescope')
require('vanten.after.catppuccin') require('vanten.after.catppuccin')
require('vanten.after.silicon')
vim.keymap.set("n", "<leader>e", vim.cmd.Ex) vim.keymap.set("n", "<leader>e", vim.cmd.Ex)

View file

@ -0,0 +1,9 @@
local silicon = require('nvim-silicon')
silicon.setup({
theme = "Dracula",
to_clipboard = true,
})
vim.keymap.set('n', '<leader>s', silicon.clip, {})
vim.keymap.set('v', '<leader>s', silicon.clip, {})

View file

@ -16,4 +16,5 @@ return {
ft = { "markdown" }, ft = { "markdown" },
build = function() vim.fn["mkdp#util#install"]() end, build = function() vim.fn["mkdp#util#install"]() end,
}, },
{ 'michaelrommel/nvim-silicon' },
} }

7
home-modules/silicon.nix Normal file
View file

@ -0,0 +1,7 @@
{ pkgs, ... }:
{
home.packages = [
pkgs.silicon
];
}

View file

@ -4,6 +4,7 @@
imports = [ imports = [
./home-modules/emacs.nix ./home-modules/emacs.nix
./home-modules/fetch.nix ./home-modules/fetch.nix
./home-modules/silicon.nix
]; ];
nixpkgs.config.allowUnfree = true; nixpkgs.config.allowUnfree = true;