update
This commit is contained in:
parent
6918e692bb
commit
d7917f5236
@ -1,6 +1 @@
|
||||
local map = vim.api.nvim_set_keymap
|
||||
local openPreview = ":CocCommand markdown-preview-enhanced.openPreview<CR>:CocCommand markdown-preview-enhanced.openPreviewBackground<CR>"
|
||||
|
||||
map('n', '<leader>rr', openPreview, {noremap = false})
|
||||
|
||||
print("markdown sourced")
|
||||
|
@ -1,6 +1,4 @@
|
||||
local map = vim.api.nvim_set_keymap
|
||||
local openPreview = ":CocCommand markdown-preview-enhanced.openPreview<CR>:CocCommand markdown-preview-enhanced.openPreviewBackground<CR>"
|
||||
|
||||
map('n', '<leader>rr', openPreview, {noremap = false})
|
||||
|
||||
print("markdown sourced")
|
||||
map('n', '<leader>r', openPreview, {noremap = false})
|
||||
|
@ -54,13 +54,13 @@ vim.api.nvim_create_autocmd({ "BufEnter" }, {
|
||||
end,
|
||||
})
|
||||
|
||||
local require_markdown = function() require('Filetype.markdown') end
|
||||
local require_html = function() require('Filetype.Html') end
|
||||
|
||||
vim.api.nvim_create_autocmd({
|
||||
{"FileType"}, { pattern = "markdown", callback = require_markdown },
|
||||
{"FileType"}, { pattern = "html", callback = require_html }
|
||||
})
|
||||
local require_markdown = {}
|
||||
function require_markdown()
|
||||
require('Filetype.markdown')
|
||||
end
|
||||
vim.api.nvim_create_autocmd(
|
||||
{"FileType"}, { pattern = "markdown", callback = require_markdown }
|
||||
)
|
||||
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user