aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/home/.config/nvim/lua/custom/plugins/completion.lua
diff options
context:
space:
mode:
authorLibravatar sommerfeld <[email protected]>2026-04-17 10:53:11 +0100
committerLibravatar sommerfeld <[email protected]>2026-04-17 10:53:11 +0100
commitfcab70e06325f123030a9442aef001707a603950 (patch)
tree2bd9c2bd5c731767653f3e2f06adeaa54119eeb5 /home/.config/nvim/lua/custom/plugins/completion.lua
parentbf282a6e1c16a2976a8478f1f6ef916bcf75e52c (diff)
downloaddotfiles-fcab70e06325f123030a9442aef001707a603950.tar.gz
dotfiles-fcab70e06325f123030a9442aef001707a603950.tar.bz2
dotfiles-fcab70e06325f123030a9442aef001707a603950.zip
refactor: flatten custom/plugins/ to plugins/
Rename lua/custom/plugins/ to lua/plugins/ following the standard lazy.nvim convention. The extra custom/ nesting added no value. Update import path in init.lua accordingly.
Diffstat (limited to 'home/.config/nvim/lua/custom/plugins/completion.lua')
-rw-r--r--home/.config/nvim/lua/custom/plugins/completion.lua152
1 files changed, 0 insertions, 152 deletions
diff --git a/home/.config/nvim/lua/custom/plugins/completion.lua b/home/.config/nvim/lua/custom/plugins/completion.lua
deleted file mode 100644
index ca46170..0000000
--- a/home/.config/nvim/lua/custom/plugins/completion.lua
+++ /dev/null
@@ -1,152 +0,0 @@
-return {
- {
- "zbirenbaum/copilot.lua",
- cmd = "Copilot",
- build = ":Copilot auth",
- event = "InsertEnter",
- dependencies = {
- {
- "copilotlsp-nvim/copilot-lsp",
- init = function()
- vim.g.copilot_nes_debounce = 500
- end,
- },
- },
- keys = {
- {
- "<leader>tc",
- function()
- require("copilot.command").toggle()
- end,
- desc = "[T]oggle [C]opilot attachment",
- },
- },
- opts = {
- suggestion = { enabled = false },
- panel = { enabled = false },
- server_opts_overrides = {
- settings = {
- telemetry = {
- telemetryLevel = "off",
- },
- },
- },
- nes = {
- enabled = true,
- keymap = {
- accept_and_goto = "<leader>p",
- accept = false,
- dismiss = "<Esc>",
- },
- },
- },
- },
- {
- "saghen/blink.compat",
- opts = {},
- },
- {
- "saghen/blink.cmp",
- dependencies = {
- "rafamadriz/friendly-snippets",
- "fang2hou/blink-copilot",
- "rcarriga/cmp-dap",
- "xzbdmw/colorful-menu.nvim",
- },
- opts = {
- keymap = {
- preset = "cmdline",
- ["<CR>"] = { "accept", "fallback" },
- },
- appearance = {
- use_nvim_cmp_as_default = true,
- },
- completion = {
- menu = {
- draw = {
- -- treesitter = { "lsp" },
- -- We don't need label_description now because label and label_description are already
- -- combined together in label by colorful-menu.nvim.
- columns = { { "kind_icon" }, { "label", gap = 1 } },
- components = {
- label = {
- text = function(ctx)
- return require("colorful-menu").blink_components_text(ctx)
- end,
- highlight = function(ctx)
- return require("colorful-menu").blink_components_highlight(
- ctx
- )
- end,
- },
- },
- },
- },
- list = {
- selection = {
- preselect = function()
- return not require("blink.cmp").snippet_active({ direction = 1 })
- end,
- },
- },
- documentation = { auto_show = true },
- },
- signature = {
- enabled = true,
- trigger = {
- enabled = true,
- show_on_keyword = true,
- show_on_insert = true,
- },
- },
- sources = {
- default = { "lazydev", "lsp", "copilot", "snippets", "path", "buffer" },
- per_filetype = {
- ["dap-repl"] = { "dap" },
- codecompanion = { "codecompanion" },
- },
- providers = {
- path = {
- opts = {
- get_cwd = vim.fn.getcwd,
- },
- },
- copilot = {
- name = "copilot",
- module = "blink-copilot",
- score_offset = 100,
- async = true,
- },
- lazydev = {
- name = "LazyDev",
- module = "lazydev.integrations.blink",
- -- make lazydev completions top priority (see `:h blink.cmp`)
- score_offset = 100,
- },
- dap = { name = "dap", module = "blink.compat.source" },
- },
- },
- },
- },
- {
- "saghen/blink.pairs",
- version = "*",
- dependencies = "saghen/blink.download",
- opts = {
- mappings = {
- disabled_filetypes = {},
- },
- highlights = {
- groups = {
- "BlinkIndentOrange",
- "BlinkIndentViolet",
- "BlinkIndentBlue",
- "BlinkIndentRed",
- "BlinkIndentCyan",
- "BlinkIndentYellow",
- "BlinkIndentGreen",
- },
- },
- },
- },
-}