From 3ae37019b1bd1f148d3ac85ae70dad94c37e91ff Mon Sep 17 00:00:00 2001 From: Salar Rahmanian Date: Fri, 24 Feb 2023 18:56:36 -0800 Subject: [PATCH] markdown improvements and lazy config changes --- init.lua | 7 ++++++- lua/plugins/init.lua | 13 +------------ lua/plugins/markdown-composer.lua | 8 ++++++++ 3 files changed, 15 insertions(+), 13 deletions(-) create mode 100644 lua/plugins/markdown-composer.lua diff --git a/init.lua b/init.lua index 977b5b9..dddc205 100644 --- a/init.lua +++ b/init.lua @@ -17,7 +17,12 @@ vim.opt.rtp:prepend(lazypath) vim.g.mapleader = " " vim.g.maplocalleader = " " -require("lazy").setup("plugins") +require("lazy").setup("plugins", { + lockfile = vim.fn.stdpath("data") .. "/lazy-lock.json", -- in data directory as normal location read only as managed by nix + dev = { + path = "~/Projects/Neovim" + } +}) -- [[ Setting options ]] -- See `:help vim.o` diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 283c584..2e7a0c4 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -60,16 +60,5 @@ return { require("Comment").setup() end, }, - "SidOfc/mkdx", - { - "ellisonleao/glow.nvim", - cmd = "Glow", - config = function () - require('glow').setup({ - style = "dark", - width = 120, - install_path = "~/.nix-profile/bin/glow" - }) - end - } + "SidOfc/mkdx" } diff --git a/lua/plugins/markdown-composer.lua b/lua/plugins/markdown-composer.lua new file mode 100644 index 0000000..d895334 --- /dev/null +++ b/lua/plugins/markdown-composer.lua @@ -0,0 +1,8 @@ +return { + "euclio/vim-markdown-composer", + keys = { + { "nv", "ComposerStart", desc = "Composer Start" }, + }, + build = "cargo build --release --locked" +} +