diff --git a/data/nvim/init.lua b/data/nvim/init.lua index 6b5eb8f..346d893 100644 --- a/data/nvim/init.lua +++ b/data/nvim/init.lua @@ -164,6 +164,34 @@ require("lazy").setup({ end, }, + -- https://github.com/hrsh7th/nvim-cmp + { + "hrsh7th/nvim-cmp", + event = "InsertEnter", + dependencies = { + "neovim/nvim-lspconfig", + "hrsh7th/cmp-nvim-lsp", + "hrsh7th/cmp-buffer", + }, + config = function() + local cmp = require("cmp") + cmp.setup({ + mapping = cmp.mapping.preset.insert({ + [""] = cmp.mapping.complete(), + [""] = cmp.mapping.confirm({ + behavior = cmp.ConfirmBehavior.Replace, + select = true, + }), + }), + sources = cmp.config.sources({ + { name = "nvim_lsp" }, + }, { + { name = "buffer" }, + }), + }) + end, + }, + -- https://github.com/lukas-reineke/indent-blankline.nvim { "lukas-reineke/indent-blankline.nvim",