Skip to content

Commit

Permalink
Update completion configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
simonrw committed Oct 13, 2024
1 parent c1d0093 commit a9def43
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions home/nixvim/completion.nix
Original file line number Diff line number Diff line change
Expand Up @@ -33,14 +33,16 @@ in {
};
sources =
[
{name = "nvim_lsp"; keyword_length = 2;}
{name = "path";}
{name = "nvim_lsp"; keyword_length = 2; groupIndex = 1;}
{name = "treesitter"; keyword_length = 2; groupIndex = 1;}
{name = "path"; groupIndex = 1;}
{
name = "buffer";
# Words from other open buffers can also be suggested.
option.get_bufnrs.__raw = "vim.api.nvim_list_bufs";
groupIndex = 1;
}
{name = "luasnip"; keyword_length = 2;}
{name = "luasnip"; keyword_length = 2; groupIndex = 2;}
]
++ (lib.optionals cfg.emoji [
{name = "emoji";}
Expand Down

0 comments on commit a9def43

Please sign in to comment.