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