diff --git a/home/nixvim/completion.nix b/home/nixvim/completion.nix index 6b632d71..89ba392e 100644 --- a/home/nixvim/completion.nix +++ b/home/nixvim/completion.nix @@ -32,7 +32,11 @@ in { sources = [ {name = "nvim_lsp";} {name = "path";} - {name = "buffer";} + { + name = "buffer"; + # Words from other open buffers can also be suggested. + option.get_bufnrs.__raw = "vim.api.nvim_list_bufs"; + } {name = "luasnip";} ]; mapping = {