2022-07-09 21:27:04 +00:00
|
|
|
local M = {}
|
|
|
|
|
|
|
|
M.packer = function(use)
|
|
|
|
-- Important tweaks
|
|
|
|
use("tpope/vim-surround") --- Manipulate parentheses
|
|
|
|
|
|
|
|
-- Convenience tweaks
|
|
|
|
use("tpope/vim-eunuch") --- File manipulation in Vim
|
|
|
|
use("tpope/vim-vinegar") --- Fixes netrw file explorer
|
|
|
|
use("tpope/vim-fugitive") --- Git commands and syntax
|
|
|
|
use("tpope/vim-repeat") --- Actually repeat using .
|
|
|
|
|
|
|
|
-- Use gc or gcc to add comments
|
|
|
|
use({
|
|
|
|
"numToStr/Comment.nvim",
|
|
|
|
config = function()
|
|
|
|
require("Comment").setup()
|
|
|
|
end,
|
|
|
|
})
|
|
|
|
|
|
|
|
-- Alignment tool
|
2022-07-11 03:31:48 +00:00
|
|
|
use({
|
|
|
|
"godlygeek/tabular",
|
|
|
|
config = function()
|
|
|
|
vim.keymap.set("", "<Leader>ta", ":Tabularize /")
|
|
|
|
vim.keymap.set("", "<Leader>t#", ":Tabularize /#<CR>")
|
|
|
|
vim.keymap.set("", "<Leader>tl", ":Tabularize /---<CR>")
|
|
|
|
end,
|
|
|
|
})
|
2022-07-09 21:27:04 +00:00
|
|
|
|
|
|
|
-- Markdown renderer / wiki notes
|
2022-10-22 14:29:50 +00:00
|
|
|
-- use("vimwiki/vimwiki")
|
|
|
|
use({
|
|
|
|
"jakewvincent/mkdnflow.nvim",
|
|
|
|
config = function()
|
|
|
|
require("mkdnflow").setup({
|
|
|
|
modules = {
|
|
|
|
bib = false,
|
|
|
|
conceal = true,
|
|
|
|
folds = false,
|
|
|
|
},
|
|
|
|
perspective = {
|
|
|
|
priority = "current",
|
|
|
|
fallback = "first",
|
|
|
|
nvim_wd_heel = false, -- Don't change working dir
|
|
|
|
},
|
|
|
|
links = {
|
|
|
|
style = "markdown",
|
|
|
|
conceal = true,
|
|
|
|
},
|
|
|
|
wrap = true,
|
|
|
|
to_do = {
|
|
|
|
symbols = { " ", "-", "x" },
|
|
|
|
},
|
|
|
|
})
|
|
|
|
-- Save when moving to new buffer
|
|
|
|
vim.api.nvim_create_autocmd("FileType", {
|
|
|
|
pattern = "markdown",
|
|
|
|
command = "set autowriteall",
|
|
|
|
})
|
|
|
|
end,
|
|
|
|
})
|
2022-07-09 21:27:04 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
return M
|