Compare commits

...

2 Commits

Author SHA1 Message Date
juan
4b3e0236e0
Add glow: the markdown previewer
Currently using my own fork, will change to upstream once
the PR is accepted.
2022-05-09 11:25:29 +08:00
juan
931400b709
add mapping for tabs 2022-05-09 11:23:42 +08:00
3 changed files with 8 additions and 1 deletions

View File

@ -28,3 +28,4 @@ global.neoformat_basic_format_trim = 1
-- leader settings -- leader settings
global.mapleader = ' ' global.mapleader = ' '
global.glow_border = "rounded"

View File

@ -15,6 +15,7 @@ vim.api.nvim_set_keymap('', '<A-K>', '<C-w>K', {})
vim.api.nvim_set_keymap('', '<A-L>', '<C-w>L', {}) vim.api.nvim_set_keymap('', '<A-L>', '<C-w>L', {})
vim.api.nvim_set_keymap('', '<A->>', '<C-w>>', {}) vim.api.nvim_set_keymap('', '<A->>', '<C-w>>', {})
vim.api.nvim_set_keymap('', '<A-<>', '<C-w><', {}) vim.api.nvim_set_keymap('', '<A-<>', '<C-w><', {})
vim.api.nvim_set_keymap('', '<A-T>', '<C-w>T', {})
-- undo to the last , . or ! -- undo to the last , . or !
vim.api.nvim_set_keymap('i', ',', ',<c-g>u', {noremap = true}) vim.api.nvim_set_keymap('i', ',', ',<c-g>u', {noremap = true})
vim.api.nvim_set_keymap('i', '.', '.<c-g>u', {noremap = true}) vim.api.nvim_set_keymap('i', '.', '.<c-g>u', {noremap = true})

View File

@ -162,4 +162,9 @@ return require('packer').startup(function(use)
-- integrations -- integrations
use {"tpope/vim-fugitive", cmd = "G"} use {"tpope/vim-fugitive", cmd = "G"}
use {
"JuanCldCmt/glow.nvim",
branch = 'main',
cmd = {"Glow", "GlowInstall"}
}
end) end)