tex?
This commit is contained in:
parent
52f9b876b5
commit
e40cd3e583
10 changed files with 133 additions and 25 deletions
|
|
@ -27,6 +27,7 @@
|
|||
|
||||
cmp-nvim-lsp
|
||||
cmp-buffer
|
||||
cmp-emoji
|
||||
cmp-path
|
||||
cmp-cmdline
|
||||
cmp-nvim-ultisnips
|
||||
|
|
|
|||
|
|
@ -6,7 +6,7 @@ setlocal breakat-=@
|
|||
set makeprg=Rscript\ -e\ 'publishR::render(\\"%\\")'
|
||||
|
||||
" nnoremap <localleader>oh :! xdg-open %:r.html<cr>
|
||||
nnoremap <localleader>oh :! chromium-browser %:r.html<cr>
|
||||
nnoremap <localleader>oh :! xdg-open %:r.html<cr>
|
||||
nnoremap <localleader>op :! xdg-open %:r.pdf<cr>
|
||||
nnoremap <localleader>ow :! xdg-open %:r.docx<cr>
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,5 @@
|
|||
lua <<EOF
|
||||
local cmp = require'cmp'
|
||||
|
||||
cmp.setup({
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
|
|
@ -20,22 +19,21 @@ lua <<EOF
|
|||
}),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'nvim_lsp' },
|
||||
{ name = 'ultisnips' }, -- For ultisnips users.
|
||||
{ name = 'ultisnips' },
|
||||
{ name = 'emoji' },
|
||||
}, {
|
||||
{ name = 'buffer' },
|
||||
})
|
||||
})
|
||||
|
||||
-- Set configuration for specific filetype.
|
||||
cmp.setup.filetype('gitcommit', {
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'cmp_git' }, -- You can specify the `cmp_git` source if you were installed it.
|
||||
{ name = 'cmp_git' },
|
||||
}, {
|
||||
{ name = 'buffer' },
|
||||
})
|
||||
})
|
||||
|
||||
-- Use buffer source for `/` and `?` (if you enabled `native_menu`, this won't work anymore).
|
||||
cmp.setup.cmdline({ '/', '?' }, {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue