diff options
| author | James Karefylakis <jamylak@users.noreply.github.com> | 2024-03-13 08:12:35 +1100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-12 17:12:35 -0400 |
| commit | 9d84210908011311e6e996c90d06381fefd2734a (patch) | |
| tree | 80f5470cd980973e8a9b66db89e4247c6e233198 /nvim | |
| parent | d11b8a0a9a3a1b03e5f785b68decc24c3d388b6b (diff) | |
| download | dots-9d84210908011311e6e996c90d06381fefd2734a.tar.gz | |
Use `cmp-nvim-lua` as `nvim-cmp` source for neovim Lua API (#696)
* Use cmp-nvim-lua as nvim-cmp source for neovim Lua API
* Move the dependency to a more suitable place
Diffstat (limited to 'nvim')
| -rw-r--r-- | nvim/init.lua | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/nvim/init.lua b/nvim/init.lua index 04cc6b7..fe25648 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -640,6 +640,9 @@ require('lazy').setup({ -- into multiple repos for maintenance purposes. 'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-path', + -- nvim-cmp source for neovim Lua API + -- so that things like vim.keymap.set, etc. are autocompleted + 'hrsh7th/cmp-nvim-lua', -- If you want to add a bunch of pre-configured snippets, -- you can use this plugin to help you. It even has snippets @@ -701,6 +704,7 @@ require('lazy').setup({ end, { 'i', 's' }), }, sources = { + { name = 'nvim_lua' }, { name = 'nvim_lsp' }, { name = 'luasnip' }, { name = 'path' }, |