diff --git a/configuration.nix b/configuration.nix index e255963..50a16a2 100644 --- a/configuration.nix +++ b/configuration.nix @@ -135,6 +135,13 @@ in { home-manager ]; + environment.variables = { + LD_LIBRARY_PATH = with pkgs; lib.makeLibraryPath [ + fontconfig + freetype + ]; + }; + programs.nix-ld.libraries = with pkgs; [ stdenv.cc.cc zlib @@ -145,6 +152,7 @@ in { openssl curl expat + fontconfig ]; security.rtkit.enable = true; services.pipewire = { diff --git a/dotfiles/nvim/after/init.lua b/dotfiles/nvim/after/init.lua index 7d9187d..ef36414 100644 --- a/dotfiles/nvim/after/init.lua +++ b/dotfiles/nvim/after/init.lua @@ -2,5 +2,6 @@ require('vanten.after.treesitter') require('vanten.after.lsp') require('vanten.after.telescope') require('vanten.after.catppuccin') +require('vanten.after.silicon') vim.keymap.set("n", "e", vim.cmd.Ex) diff --git a/dotfiles/nvim/after/silicon.lua b/dotfiles/nvim/after/silicon.lua new file mode 100644 index 0000000..ca1b960 --- /dev/null +++ b/dotfiles/nvim/after/silicon.lua @@ -0,0 +1,18 @@ +require('silicon').setup({ + font = 'RobotoMono Nerd Font=16', + theme = 'Monokai Extended', + background = '#cba6f7', + watermark = { + text = '󰫑 vanten_s@fedi.vanten-s.com', + }, + line_number = true, + pad_vert = 80, + pad_horiz = 50, + output = { + path = "/home/krivah/Pictures/Screenshots", + format = "silicon_[year][month][day]_[hour][minute][second].png", + }, + window_title = function() + return vim.fn.fnamemodify(vim.fn.bufname(vim.fn.bufnr()), ':~:.') + end, +}) diff --git a/dotfiles/nvim/plugins.lua b/dotfiles/nvim/plugins.lua index 96849ae..3395186 100644 --- a/dotfiles/nvim/plugins.lua +++ b/dotfiles/nvim/plugins.lua @@ -10,4 +10,5 @@ return { { 'hrsh7th/nvim-cmp' }, { 'hrsh7th/cmp-vsnip' }, { 'hrsh7th/vim-vsnip' }, + { 'krivahtoo/silicon.nvim', build = './install.sh' } }