From c2fdfafae4851947e136e14d28974f24bb0cbe14 Mon Sep 17 00:00:00 2001 From: iGor milhit Date: Fri, 16 Jun 2023 15:43:27 +0200 Subject: [PATCH] plugins: improve md preview, install ToggleTerm - Fixes the markdown preview node package installation. - Removes the markdown preview theme configuration. - Adds the ToggleTerm plugin that allows to improve the managment of terminal buffers and configures it. Co-Authored-by: iGor milhit --- lua/custom/plugins/markdownpreview.lua | 5 +---- lua/custom/plugins/toggleterm.lua | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 4 deletions(-) create mode 100644 lua/custom/plugins/toggleterm.lua diff --git a/lua/custom/plugins/markdownpreview.lua b/lua/custom/plugins/markdownpreview.lua index c86b5d1..6c61e40 100644 --- a/lua/custom/plugins/markdownpreview.lua +++ b/lua/custom/plugins/markdownpreview.lua @@ -1,9 +1,6 @@ -- makdown-preview.nvim -- installed with code found at https://github.com/iamcco/markdown-preview.nvim/issues/558#issuecomment-1514701537 --- Force the light theme, no matter the system option is. -vim.cmd([[ let g:mkdp_theme = 'light' ]]) - return { { "iamcco/markdown-preview.nvim", @@ -12,6 +9,6 @@ return { 'markdown' }, lazy = true, - build = "cd app && yarn install", + build = "cd app && npm install && git reset --hard", }, } diff --git a/lua/custom/plugins/toggleterm.lua b/lua/custom/plugins/toggleterm.lua new file mode 100644 index 0000000..68980a7 --- /dev/null +++ b/lua/custom/plugins/toggleterm.lua @@ -0,0 +1,16 @@ +-- A neovim lua plugin to help easily manage multiple terminal windows +-- https://github.com/akinsho/toggleterm.nvim + +-- Set ZSH as shell to get it in a terminal buffer +vim.opt.shell = "/usr/bin/zsh" + +return { + { + 'akinsho/toggleterm.nvim', + version = "*", + opts = { + -- Avoid terminal to be darker than the Nord colorscheme + shade_terminals = false + } + } +}