44 lines
1.2 KiB
Nix
44 lines
1.2 KiB
Nix
{
|
|
programs.nvf.settings.vim = {
|
|
autopairs = {
|
|
nvim-autopairs.enable = true;
|
|
};
|
|
autocomplete = {
|
|
enableSharedCmpSources = true;
|
|
blink-cmp = {
|
|
enable = true;
|
|
friendly-snippets.enable = true;
|
|
mappings = {
|
|
# default mappings:
|
|
# - Close [blink.cmp]:<C-e>
|
|
# - Complete [blink.cmp]:<C-Space>
|
|
# - Confirm [blink.cmp]:<CR>
|
|
# - Next item [blink.cmp]:<Tab>
|
|
# - Previous item [blink.cmp]:<S-Tab>
|
|
# - Scroll docs down [blink.cmp]:<C-f>
|
|
# - Scroll docs up [blink.cmp]:<C-d>
|
|
};
|
|
setupOpts = {
|
|
cmdline.sources = null; # use default source list
|
|
completion.documentation.auto_show_delay_ms = 0;
|
|
signature.enabled = true;
|
|
};
|
|
};
|
|
nvim-cmp = {};
|
|
};
|
|
# enable code snippets using luasnip
|
|
# loads from vscode by default using friendly-snippets
|
|
snippets.luasnip = {
|
|
enable = true;
|
|
setupOpts = {
|
|
enable_autosnippets = true;
|
|
};
|
|
};
|
|
binds = {
|
|
# cheatsheet.nvim provides cheatsheets with fuzzy finding with <leader>?
|
|
cheatsheet.enable = true;
|
|
# whichkey provides a popup window with hotkeys
|
|
whichKey.enable = true;
|
|
};
|
|
};
|
|
}
|