feat(neovim): enable adapter and update default sources

This commit is contained in:
uttarayan21
2025-10-17 01:47:05 +05:30
parent 6da1af0fe5
commit c9b43a0194

View File

@@ -455,13 +455,13 @@ in {
codelldb = "${vscode-lldb.adapter}/bin/codelldb"; codelldb = "${vscode-lldb.adapter}/bin/codelldb";
in { in {
autoload_configurations = false; autoload_configurations = false;
# adapter = adapter =
# /* /*
# lua lua
# */ */
# '' ''
# require('rustaceanvim.config').get_codelldb_adapter("${codelldb}", "${liblldb}") require('rustaceanvim.config').get_codelldb_adapter("${codelldb}", "${liblldb}")
# ''; '';
}; };
tools = { tools = {
float_win_config = { float_win_config = {
@@ -545,11 +545,6 @@ in {
window.border = "rounded"; window.border = "rounded";
}; };
keymap = { keymap = {
# "<CR>" = "cmp.mapping.confirm({select = true})";
# "<CR>" = "cmp.mapping.confirm()";
# "<C-Space>" = "cmp.mapping.complete()";
# "<C-n>" = "cmp.mapping(cmp.mapping.select_next_item(), {'i', 's'})";
# "<C-p>" = "cmp.mapping(cmp.mapping.select_prev_item(), {'i', 's'})";
"<CR>" = ["select_and_accept" "fallback"]; "<CR>" = ["select_and_accept" "fallback"];
"<C-n>" = [ "<C-n>" = [
"select_next" "select_next"
@@ -559,14 +554,6 @@ in {
"select_prev" "select_prev"
"fallback" "fallback"
]; ];
# "<c-l>" = [
# "snippet_forward"
# "fallback"
# ];
# "<c-h>" = [
# "snippet_backward"
# "fallback"
# ];
"<C-u>" = [ "<C-u>" = [
"scroll_documentation_up" "scroll_documentation_up"
"fallback" "fallback"
@@ -578,7 +565,15 @@ in {
}; };
sources = { sources = {
cmdline = []; cmdline = [];
default = ["lsp" "dictionary" "snippets" "path" "buffer"]; default = [
"git"
"lsp"
"dictionary"
"snippets"
"path"
"buffer"
"ripgrep"
];
providers = { providers = {
buffer = { buffer = {
score_offset = -7; score_offset = -7;
@@ -598,6 +593,7 @@ in {
}; };
}; };
}; };
blink-ripgrep.enable = true;
blink-cmp-dictionary.enable = true; blink-cmp-dictionary.enable = true;
blink-cmp-git.enable = true; blink-cmp-git.enable = true;
blink-cmp-copilot.enable = true; blink-cmp-copilot.enable = true;