fix duplicate entry for completion

This commit is contained in:
Eric Olerud 2025-04-02 22:53:29 -04:00
parent 4cc7dd1837
commit c585a59e16
4 changed files with 43 additions and 4 deletions

View file

@ -6,6 +6,7 @@ return { -- blink autocompletion
---@type blink.cmp.Config
opts = {
completion = {
documentation = { auto_show = true },
list = {
selection = {
preselect = false,
@ -20,9 +21,6 @@ return { -- blink autocompletion
appearance = {
nerd_font_variant = 'normal',
},
completion = {
documentation = { auto_show = true },
},
sources = {
-- add lazydev to your completion providers
default = { 'lazydev', 'lsp', 'path', 'snippets', 'buffer' },

View file

@ -94,10 +94,12 @@ return {
},
}
-- Godot's LSP - Requires Godot to be running
if vim.fn.has 'win32' == 1 then
if vim.fn.has 'win32' then
require('lspconfig')['gdscript'].setup {
cmd = { 'ncat', '127.0.0.1', '6005' },
capabilities = require('blink.cmp').get_lsp_capabilities(),
filetypes = { 'gd', 'gdscript', 'gdscript3' },
root_dir = require('lspconfig.util').root_pattern('project.godot', '.git'),
name = 'godot',
}
else