Skip to content

Commit

Permalink
Fix buffer autocompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
cschindlbeck committed Feb 21, 2024
1 parent 4f4d7a5 commit 036bdfc
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
8 changes: 5 additions & 3 deletions lua/plugins/completion.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 036bdfc

Please sign in to comment.