feat: latex stuff
This commit is contained in:
parent
ce832a3ca2
commit
6dd9ebbb6e
8 changed files with 60 additions and 5 deletions
dotfiles/neovim/lua/my/plugins
25
dotfiles/neovim/lua/my/plugins/cmp.lua
Normal file
25
dotfiles/neovim/lua/my/plugins/cmp.lua
Normal file
|
@ -0,0 +1,25 @@
|
|||
local M = {}
|
||||
|
||||
function M.setup()
|
||||
local cmp = require("cmp")
|
||||
|
||||
cmp.setup({
|
||||
mapping = {
|
||||
['<C-b>'] = cmp.mapping(cmp.mapping.scroll_docs(-4), {'i', 'c'}),
|
||||
['<C-f>'] = cmp.mapping(cmp.mapping.scroll_docs(4), {'i', 'c'}),
|
||||
['<C-Space>'] = cmp.mapping(cmp.mapping.complete(), {'i', 'c'}),
|
||||
['<C-y>'] = cmp.config.disable,
|
||||
['<C-e>'] = cmp.mapping({i = cmp.mapping.abort(), c = cmp.mapping.close()}),
|
||||
['<CR>'] = cmp.mapping.confirm({select = true})
|
||||
},
|
||||
sources = cmp.config.sources({}, {{name = 'buffer'}})
|
||||
})
|
||||
|
||||
-- Use buffer source for `/` (if you enabled `native_menu`, this won't work anymore).
|
||||
cmp.setup.cmdline('/', {sources = {{name = 'buffer'}}})
|
||||
|
||||
-- Use cmdline & path source for ':' (if you enabled `native_menu`, this won't work anymore).
|
||||
cmp.setup.cmdline(':', {sources = cmp.config.sources({{name = 'path'}}, {{name = 'cmdline'}})})
|
||||
end
|
||||
|
||||
return M
|
Loading…
Add table
Add a link
Reference in a new issue