From 282e0b2a50734acc78a459aaa50ca3f95433f7c1 Mon Sep 17 00:00:00 2001 From: Cody Hiar Date: Mon, 26 Jun 2023 10:14:47 -0600 Subject: Add markdown folding --- flake.nix | 1 + init.lua | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/flake.nix b/flake.nix index e9e83c5..d183620 100644 --- a/flake.nix +++ b/flake.nix @@ -94,6 +94,7 @@ vim-bufkill emmet-vim tagbar + vim-markdown ]; }; }; diff --git a/init.lua b/init.lua index bf3656e..d34744f 100644 --- a/init.lua +++ b/init.lua @@ -58,6 +58,8 @@ vim.o.spelllang = "en_ca" vim.o.hidden = true -- Ask confirm on exit instead of error vim.o.confirm = true +-- If a filetype has folding enabled, make sure all folds are opened +vim.o.foldlevel=99 -- My Highlights vim.cmd [[ @@ -394,5 +396,10 @@ vim.cmd([[ let g:oscyank_term = 'default' ]]) + -- vim-bufkill vim.api.nvim_set_keymap('n', 'bd', 'BD', { noremap = true }) + + +-- vim-markdown +vim.g.vim_markdown_auto_insert_bullets = 0 -- cgit v1.2.3