summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorsinanmohd <sinan@firemail.cc>2023-08-28 06:53:34 +0530
committersinanmohd <sinan@firemail.cc>2023-08-28 07:56:06 +0530
commita8a46ebee6b26191cb382dc636d1cebab5de3e81 (patch)
tree2b38a155d8e7c03ad4825ca38a9c944f4ce91e54 /.config/nvim
parentb3b52e833c222eebd1727c3ce30aa8369c4dfdde (diff)
config/nvim: cmp init
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/init.lua13
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" },
+ }
+})