From cb2cef849b9489a5b22e152f70996e4b726dfa22 Mon Sep 17 00:00:00 2001 From: QQ <1770362456@qq.com> Date: Sat, 28 Jan 2023 16:23:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8Dmarkdown?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 27 ++------------------------- lua/Filetype/markdown.lua | 2 +- 2 files changed, 3 insertions(+), 26 deletions(-) diff --git a/README.md b/README.md index 5913056..1462553 100644 --- a/README.md +++ b/README.md @@ -4,20 +4,20 @@ ## 文件结构 --- ``` -. ├── coc-settings.json ├── init.lua ├── lua │   ├── core -│   │   ├── G.lua │   │   ├── keymap.lua │   │   ├── options.lua │   │   └── plug.lua │   ├── Filetype │   │   ├── c.lua │   │   └── markdown.lua +│   ├── G.lua │   └── Plugin │   ├── coc.lua +│   ├── Imchange.lua │   └── lualine.lua └── README.md ``` @@ -60,26 +60,3 @@ select the closest text object. ## Markdow-preview 下载后需要到插件目录下使用`npm install`或者`yarn install` - - - - - - - - - - - - - - - - - - - - - - - diff --git a/lua/Filetype/markdown.lua b/lua/Filetype/markdown.lua index 8431359..6ce616a 100644 --- a/lua/Filetype/markdown.lua +++ b/lua/Filetype/markdown.lua @@ -1,6 +1,6 @@ local G = require("G") -G.cmd("au VimEnter * :MarkdownPreview") +G.cmd("au VimEnter * :MarkdownPreviewToggle") --set to 1, nvim will open the preview window after entering the markdown buffer --default: 0