More fixes.

This commit is contained in:
juanito87 2025-07-12 18:40:36 -03:00
parent 0677b655ee
commit f35803ef0b
No known key found for this signature in database
GPG Key ID: EAB042894FD44AFD
1 changed files with 93 additions and 92 deletions

View File

@ -220,7 +220,7 @@ return {
gh_actions_ls = {}, gh_actions_ls = {},
jinja_lsp = {}, jinja_lsp = {},
markdown_oxide = {}, markdown_oxide = {},
terraform_lsp = {}, terraform = {},
yamlls = {}, yamlls = {},
gopls = {}, gopls = {},
pyright = {}, pyright = {},
@ -280,101 +280,102 @@ return {
-- Autocompletion -- Autocompletion
{ {
'saghen/blink.cmp', 'saghen/blink.cmp',
event = 'VimEnter', build = 'cargo +nightly build --release',
version = '1.*', event = 'VimEnter',
dependencies = { version = '1.*',
-- Snippet Engine dependencies = {
{ -- Snippet Engine
'L3MON4D3/LuaSnip', {
version = '2.*', 'L3MON4D3/LuaSnip',
build = (function() version = '2.*',
-- Build Step is needed for regex support in snippets. build = (function()
-- This step is not supported in many windows environments. -- Build Step is needed for regex support in snippets.
-- Remove the below condition to re-enable on windows. -- This step is not supported in many windows environments.
if vim.fn.has 'win32' == 1 or vim.fn.executable 'make' == 0 then -- Remove the below condition to re-enable on windows.
return if vim.fn.has 'win32' == 1 or vim.fn.executable 'make' == 0 then
end return
return 'make install_jsregexp' end
end)(), return 'make install_jsregexp'
dependencies = { end)(),
-- `friendly-snippets` contains a variety of premade snippets. dependencies = {
-- See the README about individual language/framework/plugin snippets: -- `friendly-snippets` contains a variety of premade snippets.
-- https://github.com/rafamadriz/friendly-snippets -- See the README about individual language/framework/plugin snippets:
-- { -- https://github.com/rafamadriz/friendly-snippets
-- 'rafamadriz/friendly-snippets', -- {
-- config = function() -- 'rafamadriz/friendly-snippets',
-- require('luasnip.loaders.from_vscode').lazy_load() -- config = function()
-- end, -- require('luasnip.loaders.from_vscode').lazy_load()
-- }, -- end,
}, -- },
opts = {},
}, },
'folke/lazydev.nvim', opts = {},
}, },
--- @module 'blink.cmp' 'folke/lazydev.nvim',
--- @type blink.cmp.Config },
opts = { --- @module 'blink.cmp'
keymap = { --- @type blink.cmp.Config
-- 'default' (recommended) for mappings similar to built-in completions opts = {
-- <c-y> to accept ([y]es) the completion. keymap = {
-- This will auto-import if your LSP supports it. -- 'default' (recommended) for mappings similar to built-in completions
-- This will expand snippets if the LSP sent a snippet. -- <c-y> to accept ([y]es) the completion.
-- 'super-tab' for tab to accept -- This will auto-import if your LSP supports it.
-- 'enter' for enter to accept -- This will expand snippets if the LSP sent a snippet.
-- 'none' for no mappings -- 'super-tab' for tab to accept
-- -- 'enter' for enter to accept
-- For an understanding of why the 'default' preset is recommended, -- 'none' for no mappings
-- you will need to read `:help ins-completion`
--
-- No, but seriously. Please read `:help ins-completion`, it is really good!
--
-- All presets have the following mappings:
-- <tab>/<s-tab>: move to right/left of your snippet expansion
-- <c-space>: Open menu or open docs if already open
-- <c-n>/<c-p> or <up>/<down>: Select next/previous item
-- <c-e>: Hide menu
-- <c-k>: Toggle signature help
--
-- See :h blink-cmp-config-keymap for defining your own keymap
preset = 'default',
-- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
-- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
},
appearance = {
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
-- Adjusts spacing to ensure icons are aligned
nerd_font_variant = 'mono',
},
completion = {
-- By default, you may press `<c-space>` to show the documentation.
-- Optionally, set `auto_show = true` to show the documentation after a delay.
documentation = { auto_show = false, auto_show_delay_ms = 500 },
},
sources = {
default = { 'lsp', 'path', 'snippets', 'lazydev' },
providers = {
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
},
},
snippets = { preset = 'luasnip' },
-- Blink.cmp includes an optional, recommended rust fuzzy matcher,
-- which automatically downloads a prebuilt binary when enabled.
-- --
-- By default, we use the Lua implementation instead, but you may enable -- For an understanding of why the 'default' preset is recommended,
-- the rust implementation via `'prefer_rust_with_warning'` -- you will need to read `:help ins-completion`
-- --
-- See :h blink-cmp-config-fuzzy for more information -- No, but seriously. Please read `:help ins-completion`, it is really good!
fuzzy = { implementation = 'lua' }, --
-- All presets have the following mappings:
-- <tab>/<s-tab>: move to right/left of your snippet expansion
-- <c-space>: Open menu or open docs if already open
-- <c-n>/<c-p> or <up>/<down>: Select next/previous item
-- <c-e>: Hide menu
-- <c-k>: Toggle signature help
--
-- See :h blink-cmp-config-keymap for defining your own keymap
preset = 'default',
-- Shows a signature help window while you type arguments for a function -- For more advanced Luasnip keymaps (e.g. selecting choice nodes, expansion) see:
signature = { enabled = true }, -- https://github.com/L3MON4D3/LuaSnip?tab=readme-ov-file#keymaps
}, },
}
appearance = {
-- 'mono' (default) for 'Nerd Font Mono' or 'normal' for 'Nerd Font'
-- Adjusts spacing to ensure icons are aligned
nerd_font_variant = 'mono',
},
completion = {
-- By default, you may press `<c-space>` to show the documentation.
-- Optionally, set `auto_show = true` to show the documentation after a delay.
documentation = { auto_show = false, auto_show_delay_ms = 500 },
},
sources = {
default = { 'lsp', 'path', 'snippets', 'lazydev' },
providers = {
lazydev = { module = 'lazydev.integrations.blink', score_offset = 100 },
},
},
snippets = { preset = 'luasnip' },
-- Blink.cmp includes an optional, recommended rust fuzzy matcher,
-- which automatically downloads a prebuilt binary when enabled.
--
-- By default, we use the Lua implementation instead, but you may enable
-- the rust implementation via `'prefer_rust_with_warning'`
--
-- See :h blink-cmp-config-fuzzy for more information
fuzzy = { implementation = 'lua' },
-- Shows a signature help window while you type arguments for a function
signature = { enabled = true },
},
},
} }