finally got markdown preview working in nvim
This commit is contained in:
parent
ad1d5f627b
commit
1abdec74c8
3 changed files with 7 additions and 3 deletions
|
|
@ -20,8 +20,8 @@ keymap('n', '<c-x>', '<c-w>:nohl<CR>', {silent = true})
|
||||||
|
|
||||||
-- Can't quite get working yet
|
-- Can't quite get working yet
|
||||||
-- keybind map Ctrl + m to :MarkdownPreview
|
-- keybind map Ctrl + m to :MarkdownPreview
|
||||||
-- vim.cmd[[nnoremap M <Plug>MarkdownPreviewToggle]]
|
-- vim.cmd[[nmap <C-m> <Plug>MarkdownPreviewToggle]]
|
||||||
-- keymap('n', '<c-m>', '<c-w>:MarkdownPreviewToggle<CR>', {noremap = true})
|
keymap('n', '<c-s>', '<c-w>:MarkdownPreview<CR>', {})
|
||||||
--
|
--
|
||||||
-- Toggle Multi-Cursor with j or k
|
-- Toggle Multi-Cursor with j or k
|
||||||
vim.cmd[[nmap <C-j> <C-Down>]]
|
vim.cmd[[nmap <C-j> <C-Down>]]
|
||||||
|
|
|
||||||
|
|
@ -43,7 +43,7 @@ require('packer').startup(function()
|
||||||
use {'lewis6991/gitsigns.nvim'}
|
use {'lewis6991/gitsigns.nvim'}
|
||||||
use 'Yggdroot/indentLine'
|
use 'Yggdroot/indentLine'
|
||||||
use 'mg979/vim-visual-multi'-- {'branch': 'master'}
|
use 'mg979/vim-visual-multi'-- {'branch': 'master'}
|
||||||
use {'iamcco/markdown-preview.nvim', run = ':call mkdp#util#install'} -- {'do': { -> mkdp#util#install() }}
|
use {'iamcco/markdown-preview.nvim'} -- :call mkdp#util#install()
|
||||||
use 'luochen1990/rainbow'
|
use 'luochen1990/rainbow'
|
||||||
use 'windwp/nvim-autopairs'
|
use 'windwp/nvim-autopairs'
|
||||||
use 'simeji/winresizer'
|
use 'simeji/winresizer'
|
||||||
|
|
|
||||||
|
|
@ -12,3 +12,7 @@ add notation about using find to list only files in current directory and NOT su
|
||||||
find $dir -maxdepth 1 -type f
|
find $dir -maxdepth 1 -type f
|
||||||
|
|
||||||
Comment out xfce in /etc/lightdm/lightdm.conf
|
Comment out xfce in /etc/lightdm/lightdm.conf
|
||||||
|
|
||||||
|
Copy keybindings.lua and packages.lua into ~/.config/nvim/lua run :PackerSync in nvim, and then run :call mkdp#util#install()
|
||||||
|
|
||||||
|
You'll then be able to invoke markdown preview with Ctrl+S
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue