feat: effectively finish nvf as ide #10
This commit is contained in:
parent
ab4113b74d
commit
3f82161bae
16 changed files with 564 additions and 53 deletions
44
users/modules/programs/nvf/input.nix
Normal file
44
users/modules/programs/nvf/input.nix
Normal file
|
@ -0,0 +1,44 @@
|
|||
{
|
||||
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;
|
||||
};
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue