mkdwnflow
This commit is contained in:
parent
389ef62711
commit
f907e03ed0
16
init.lua
16
init.lua
|
@ -134,9 +134,10 @@ require('lazy').setup({
|
|||
vim.cmd [[highlight IndentBlanklineIndent5 guifg=#61AFEF gui=nocombine]]
|
||||
vim.cmd [[highlight IndentBlanklineIndent6 guifg=#C678DD gui=nocombine]]
|
||||
vim.opt.list = true
|
||||
vim.opt.listchars:append "space:⋅"
|
||||
vim.opt.listchars:append "eol:↴"
|
||||
vim.opt.listchars:append "space: "
|
||||
vim.g.indent_blankline_filetype_exclude = { 'help', 'norg', 'markdown' }
|
||||
vim.g.indent_blankline_char_list = { '|', '¦', '┆', '┊' }
|
||||
-- vim.g.indent_blankline_char_list = { '|', '¦', '┆', '┊' }
|
||||
require("indent_blankline").setup {
|
||||
space_char_blankline = " ",
|
||||
char_highlight_list = {
|
||||
|
@ -152,10 +153,17 @@ require('lazy').setup({
|
|||
},
|
||||
|
||||
-- "gc" to comment visual regions/lines
|
||||
{ 'numToStr/Comment.nvim', opts = {} },
|
||||
{ 'numToStr/Comment.nvim', opts = {} },
|
||||
|
||||
-- Fuzzy Finder (files, lsp, etc)
|
||||
{ 'nvim-telescope/telescope.nvim', branch = '0.1.x', dependencies = { 'nvim-lua/plenary.nvim' } },
|
||||
{
|
||||
'nvim-telescope/telescope.nvim',
|
||||
branch = '0.1.x',
|
||||
dependencies = { 'nvim-lua/plenary.nvim' },
|
||||
config = function()
|
||||
require 'telescope'.setup {}
|
||||
end
|
||||
},
|
||||
|
||||
-- Fuzzy Finder Algorithm which requires local dependencies to be built.
|
||||
-- Only load if `make` is available. Make sure you have the system
|
||||
|
|
|
@ -294,6 +294,61 @@ return {
|
|||
end,
|
||||
},
|
||||
|
||||
{
|
||||
'jakewvincent/mkdnflow.nvim',
|
||||
rocks = 'luautf8', -- Ensures optional luautf8 dependency is installed
|
||||
dependencies = { 'ekickx/clipboard-image.nvim',
|
||||
"mzlogin/vim-markdown-toc" },
|
||||
config = function()
|
||||
require('mkdnflow').setup({
|
||||
links = {
|
||||
style = 'markdown',
|
||||
name_is_source = false,
|
||||
conceal = false,
|
||||
context = 0,
|
||||
implicit_extension = nil,
|
||||
transform_implicit = false,
|
||||
transform_explicit = function(text)
|
||||
text = text:gsub(" ", "-")
|
||||
text = text:lower()
|
||||
text = os.date('%Y-%m-%d_') .. text
|
||||
return (text)
|
||||
end
|
||||
},
|
||||
tables = {
|
||||
trim_whitespace = true,
|
||||
format_on_move = true,
|
||||
auto_extend_rows = false,
|
||||
auto_extend_cols = false,
|
||||
},
|
||||
mappings = {
|
||||
-- MkdnFollowLink = { { 'n', 'v' }, '<leader>fl' }, -- see MkdnEnter
|
||||
MkdnToggleToDo = { { 'n', 'v' }, '<Space>' },
|
||||
MkdnNewListItem = { { 'n', 'v' }, '<leader>li' },
|
||||
},
|
||||
new_file_template = {
|
||||
template = [[
|
||||
# {{ title }}
|
||||
Date: {{ date }}
|
||||
Filename: {{ filename }}
|
||||
]],
|
||||
placeholders = {
|
||||
before = {
|
||||
date = function()
|
||||
return os.date("%A, %B %d, %Y") -- Wednesday, March 1, 2023
|
||||
end
|
||||
},
|
||||
after = {
|
||||
filename = function()
|
||||
return vim.api.nvim_buf_get_name(0)
|
||||
end
|
||||
}
|
||||
}
|
||||
}
|
||||
})
|
||||
end,
|
||||
},
|
||||
|
||||
-- [[ Zen mode ]]
|
||||
{
|
||||
'folke/zen-mode.nvim',
|
||||
|
|
Loading…
Reference in New Issue