vimwiki and vim-pandoc
This commit is contained in:
parent
f511922568
commit
d4474ef5ce
3 changed files with 31 additions and 19 deletions
|
|
@ -34,10 +34,6 @@ nnoremap gx :! xdg-open <cfile><return>
|
||||||
nnoremap <silent> <tab> :bnext<return>
|
nnoremap <silent> <tab> :bnext<return>
|
||||||
nnoremap <silent> <S-tab> :bnext<return>
|
nnoremap <silent> <S-tab> :bnext<return>
|
||||||
nnoremap <silent> Q :bdelete<return>
|
nnoremap <silent> Q :bdelete<return>
|
||||||
nnoremap <c-h> <c-w>h
|
|
||||||
nnoremap <c-j> <c-w>j
|
|
||||||
nnoremap <c-k> <c-w>k
|
|
||||||
nnoremap <c-l> <c-w>l
|
|
||||||
nnoremap <c-q> :hide<return>
|
nnoremap <c-q> :hide<return>
|
||||||
|
|
||||||
nnoremap <leader>m :make<return>
|
nnoremap <leader>m :make<return>
|
||||||
|
|
|
||||||
|
|
@ -67,9 +67,9 @@
|
||||||
{
|
{
|
||||||
plugin = goyo;
|
plugin = goyo;
|
||||||
config = ''
|
config = ''
|
||||||
nnoremap yog :Goyo<return>
|
nnoremap <silent> yog :Goyo<CR>
|
||||||
nnoremap [og :Goyo 80<return>
|
nnoremap <silent> [og :Goyo 80<return>
|
||||||
nnoremap ]og :Goyo!<return>
|
nnoremap <silent> ]og :Goyo!<return>
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|
@ -151,6 +151,14 @@
|
||||||
|
|
||||||
vim-fish
|
vim-fish
|
||||||
vim-nix
|
vim-nix
|
||||||
|
|
||||||
|
{
|
||||||
|
plugin = vim-pandoc;
|
||||||
|
config = ''
|
||||||
|
let g:pandoc#modules#disabled = ["completion", "command", "menu", "completion"]
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
vim-repeat
|
vim-repeat
|
||||||
|
|
||||||
{
|
{
|
||||||
|
|
@ -170,17 +178,25 @@
|
||||||
vim-snippets
|
vim-snippets
|
||||||
vim-speeddating
|
vim-speeddating
|
||||||
vim-surround
|
vim-surround
|
||||||
vim-unimpaired
|
|
||||||
|
{
|
||||||
|
plugin = vim-unimpaired;
|
||||||
|
config = ''
|
||||||
|
nnoremap =p <Nop>
|
||||||
|
nnoremap =P <Nop>
|
||||||
|
nnoremap =s <Nop>
|
||||||
|
'';
|
||||||
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
plugin = vimwiki;
|
plugin = vimwiki;
|
||||||
config = ''
|
config = ''
|
||||||
let g:vimwiki_list = [
|
let g:vimwiki_list = [ { 'path': '~/notes/', 'syntax': 'markdown', 'ext': '.md' } ]
|
||||||
{
|
nnoremap <Leader>wt <Nop>
|
||||||
'path': '~/notes/',
|
nnoremap <Leader>w<Leader>t <Nop>
|
||||||
'syntax': 'markdown',
|
nmap <C-j> <Plug>VimwikiNextLink
|
||||||
'ext': '.md'
|
nmap <C-k> <Plug>VimwikiPrevLink
|
||||||
}
|
let g:vimwiki_key_mappings = { 'headers': 0, 'text_objs': 0, 'lists': 0, 'lists_return': 0, 'html': 0 }
|
||||||
]
|
|
||||||
'';
|
'';
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
|
||||||
|
|
@ -67,7 +67,7 @@ cmp.setup.cmdline(':', {
|
||||||
-- Set up lspconfig.
|
-- Set up lspconfig.
|
||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||||
-- Replace <YOUR_LSP_SERVER> with each lsp server you've enabled.
|
-- Replace <YOUR_LSP_SERVER> with each lsp server you've enabled.
|
||||||
vim.lsp.config('<YOUR_LSP_SERVER>', {
|
-- vim.lsp.config('<YOUR_LSP_SERVER>', {
|
||||||
capabilities = capabilities
|
-- capabilities = capabilities
|
||||||
})
|
-- })
|
||||||
vim.lsp.enable('<YOUR_LSP_SERVER>')
|
-- vim.lsp.enable('<YOUR_LSP_SERVER>')
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue