diff options
-rw-r--r-- | .config/nvim/init.lua | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 9373455..e2afaf4 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -96,8 +96,10 @@ require("lazy").setup({ dependencies = { { "neovim/nvim-lspconfig" }, { "hrsh7th/nvim-cmp" }, - { "hrsh7th/cmp-nvim-lsp" }, { "L3MON4D3/LuaSnip" }, + { "hrsh7th/cmp-nvim-lsp" }, + { "hrsh7th/cmp-buffer" }, + { "hrsh7th/cmp-path" }, }, }, }, { lockfile = lazylock }) @@ -138,3 +140,12 @@ require("lspconfig").nil_ls.setup {} require("lspconfig").lua_ls.setup(lsp.nvim_lua_ls()) lsp.setup() + +-- [[ cmp setup ]] +require("cmp").setup({ + sources = { + { name = "nvim_lsp" }, + { name = "buffer" }, + { name = "path" }, + } +}) |