stuff
This commit is contained in:
9
config/.ripgreprc
Normal file
9
config/.ripgreprc
Normal file
@ -0,0 +1,9 @@
|
||||
# add gdscript type
|
||||
--type-add
|
||||
gd:*.{gd,gdscript}*
|
||||
|
||||
# Search hidden files / directories (e.g. dotfiles) by default
|
||||
--hidden
|
||||
|
||||
# Because who cares about case!?
|
||||
--smart-case
|
@ -1,7 +1,65 @@
|
||||
local use_google = require("utils").use_google
|
||||
local flags = require("utils").flags
|
||||
local kind_icons = {
|
||||
-- LLM Provider icons
|
||||
claude = "",
|
||||
openai = "",
|
||||
codestral = "",
|
||||
gemini = "",
|
||||
nvim_ciderlsp = "",
|
||||
Groq = "",
|
||||
Openrouter = "",
|
||||
Ollama = "",
|
||||
["Llama.cpp"] = "",
|
||||
Deepseek = "",
|
||||
}
|
||||
|
||||
return {
|
||||
{
|
||||
"milanglacier/minuet-ai.nvim",
|
||||
config = function()
|
||||
require("minuet").setup({
|
||||
provider = "gemini",
|
||||
provider_options = {
|
||||
gemini = {
|
||||
optional = {
|
||||
generationConfig = {
|
||||
maxOutputTokens = 256,
|
||||
},
|
||||
safetySettings = {
|
||||
{
|
||||
-- HARM_CATEGORY_HATE_SPEECH,
|
||||
-- HARM_CATEGORY_HARASSMENT
|
||||
-- HARM_CATEGORY_SEXUALLY_EXPLICIT
|
||||
category = "HARM_CATEGORY_DANGEROUS_CONTENT",
|
||||
-- BLOCK_NONE
|
||||
threshold = "BLOCK_ONLY_HIGH",
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
-- Your configuration options here
|
||||
virtualtext = {
|
||||
auto_trigger_ft = {},
|
||||
keymap = {
|
||||
-- accept whole completion
|
||||
accept = "<A-A>",
|
||||
-- accept one line
|
||||
accept_line = "<A-a>",
|
||||
-- accept n lines (prompts for number)
|
||||
-- e.g. "A-z 2 CR" will accept 2 lines
|
||||
accept_n_lines = "<A-z>",
|
||||
-- Cycle to prev completion item, or manually invoke completion
|
||||
prev = "<A-[>",
|
||||
-- Cycle to next completion item, or manually invoke completion
|
||||
next = "<A-]>",
|
||||
dismiss = "<A-e>",
|
||||
},
|
||||
},
|
||||
})
|
||||
end,
|
||||
},
|
||||
{
|
||||
"saghen/blink.compat",
|
||||
-- use the latest release, via version = '*', if you also use the latest release for blink.cmp
|
||||
@ -48,6 +106,11 @@ return {
|
||||
|
||||
["<S-Up>"] = { "scroll_documentation_up", "fallback" },
|
||||
["<S-Down>"] = { "scroll_documentation_down", "fallback" },
|
||||
},
|
||||
appearance = {
|
||||
use_nvim_cmp_as_default = true,
|
||||
nerd_font_variant = "normal",
|
||||
kind_icons = kind_icons,
|
||||
},
|
||||
sources = {
|
||||
default = function(ctx)
|
||||
@ -64,11 +127,10 @@ return {
|
||||
table.insert(providerToEnable, "nvim_ciderlsp")
|
||||
table.insert(providerToEnable, "buganizer")
|
||||
else
|
||||
table.insert(providerToEnable, "codeium")
|
||||
table.insert(providerToEnable, "minuet")
|
||||
end
|
||||
return providerToEnable
|
||||
end,
|
||||
-- default = { "lsp" },
|
||||
providers = {
|
||||
lsp = { name = "LSP", module = "blink.cmp.sources.lsp", score_offset = 90 },
|
||||
-- dont show LuaLS require statements when lazydev has items
|
||||
@ -106,10 +168,10 @@ return {
|
||||
name = "nerdfont",
|
||||
module = "blink.compat.source",
|
||||
},
|
||||
codeium = {
|
||||
name = "codeium",
|
||||
module = "blink.compat.source",
|
||||
score_offset = 100,
|
||||
minuet = {
|
||||
name = "minuet",
|
||||
module = "minuet.blink",
|
||||
score_offset = 100, -- Gives minuet higher priority among suggestions
|
||||
},
|
||||
nvim_ciderlsp = {
|
||||
name = "nvim_ciderlsp",
|
||||
@ -125,6 +187,8 @@ return {
|
||||
-- experimental signature help support
|
||||
signature = { enabled = true },
|
||||
completion = {
|
||||
-- Recommended to avoid unnecessary request
|
||||
trigger = { prefetch_on_insert = false },
|
||||
list = {
|
||||
-- stylua: ignore
|
||||
selection = {
|
||||
|
@ -165,5 +165,6 @@ export CARGO_NET_GIT_FETCH_WITH_CLI=true
|
||||
|
||||
|
||||
source ~/.bash_profile
|
||||
export RIPGREP_CONFIG_PATH=$HOME/.ripgreprc
|
||||
|
||||
export PATH="$HOME/.local/bin:$PATH"
|
||||
|
Reference in New Issue
Block a user