diff --git a/README.md b/README.md index b7fba5a..d0348e2 100644 --- a/README.md +++ b/README.md @@ -11,6 +11,5 @@ Chris' neovim config files in lua based on 💤 lazy plugin manager ## TODOs -- Autocomplete not including content from current buffer - Indent does not repeat with dot - LSP not working properly for ansible diff --git a/lua/plugins/completion.lua b/lua/plugins/completion.lua index d969c43..11eadec 100644 --- a/lua/plugins/completion.lua +++ b/lua/plugins/completion.lua @@ -8,10 +8,12 @@ return { "L3MON4D3/LuaSnip", lazy = false, dependencies = { - "rafamadriz/friendly-snippets", - "saadparwaiz1/cmp_luasnip", "hrsh7th/cmp-path", + "hrsh7th/cmp-buffer", "onsails/lspkind.nvim", + -- "quangnguyen30192/cmp-nvim-ultisnips", + "rafamadriz/friendly-snippets", + "saadparwaiz1/cmp_luasnip", }, config = function() require("luasnip.loaders.from_vscode").lazy_load() @@ -51,7 +53,7 @@ return { formatting = { format = lspkind.cmp_format({ mode = "symbol", -- show only symbol annotations - maxwidth = 50, -- prevent the popup from showing more than provided characters + maxwidth = 50, -- prevent the popup from showing more than provided characters -- (e.g 50 will not show more than 50 characters) -- can also be a function to dynamically calculate max width such as -- maxwidth = function() return math.floor(0.45 * vim.o.columns) end,