From 389d7f9889c2a3155613d8adc9e048c8e02ae168 Mon Sep 17 00:00:00 2001 From: vanten-s Date: Tue, 26 Mar 2024 19:36:44 +0100 Subject: [PATCH] Fixed silicon and added markdown preview --- dotfiles/nvim/after/silicon.lua | 2 +- dotfiles/nvim/plugins.lua | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/dotfiles/nvim/after/silicon.lua b/dotfiles/nvim/after/silicon.lua index ca1b960..24eb3a8 100644 --- a/dotfiles/nvim/after/silicon.lua +++ b/dotfiles/nvim/after/silicon.lua @@ -9,7 +9,7 @@ require('silicon').setup({ pad_vert = 80, pad_horiz = 50, output = { - path = "/home/krivah/Pictures/Screenshots", + path = "/home/svante/Pictures/Screenshots", format = "silicon_[year][month][day]_[hour][minute][second].png", }, window_title = function() diff --git a/dotfiles/nvim/plugins.lua b/dotfiles/nvim/plugins.lua index 3395186..017b647 100644 --- a/dotfiles/nvim/plugins.lua +++ b/dotfiles/nvim/plugins.lua @@ -10,5 +10,11 @@ return { { 'hrsh7th/nvim-cmp' }, { 'hrsh7th/cmp-vsnip' }, { 'hrsh7th/vim-vsnip' }, - { 'krivahtoo/silicon.nvim', build = './install.sh' } + { 'krivahtoo/silicon.nvim', build = './install.sh' }, + { + "iamcco/markdown-preview.nvim", + cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, + ft = { "markdown" }, + build = function() vim.fn["mkdp#util#install"]() end, + }, }