switched to blink for auto complete

This commit is contained in:
2025-05-04 17:31:26 +02:00
parent 5e6716e263
commit 9e4735ee47
6 changed files with 30 additions and 29 deletions
View File
+1 -11
View File
@@ -2,17 +2,7 @@ require("config.lazy")
require("config.set")
require("config.remap")
vim.api.nvim_create_autocmd('LspAttach', {
callback = function(ev)
local client = vim.lsp.get_client_by_id(ev.data.client_id)
if client:supports_method('textDocument/completion') then
vim.lsp.completion.enable(true, client.id, ev.buf, { autotrigger = true })
end
end,
})
vim.lsp.enable({'basedpyright', 'lua_ls', 'yamlls', 'gopls', 'htmx', 'jsonls' })
vim.cmd("set completeopt+=noselect")
vim.lsp.enable({'basedpyright', 'lua_ls', 'yamlls', 'gopls', 'htmx', 'jsonls' })
vim.o.winborder='rounded'
-4
View File
@@ -1,6 +1,2 @@
vim.keymap.set("n", "<leader>pv", vim.cmd.Ex)
vim.keymap.set({ 'n', 'x' }, '<leader>f',
function() vim.lsp.buf.format({ async = true }) end,
{ buffer = bufnr, desc = "LSP: format buffer" }
)
+13
View File
@@ -0,0 +1,13 @@
return {
'saghen/blink.cmp',
dependencies = { 'rafamadriz/friendly-snippets' },
version = '1.*',
opts = {
keymap = { preset = 'default' },
appearance = {
nerd_font_variant = 'mono'
},
signature = { enabled = true }
},
}
+6 -4
View File
@@ -1,9 +1,11 @@
return {
{ "neovim/nvim-lspconfig" },
{
"neovim/nvim-lspconfig",
dependencies = {
"saghen/blink.cmp"
}
},
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
{ "hrsh7th/cmp-buffer"},
{ "hrsh7th/nvim-cmp" },
{ "hrsh7th/cmp-nvim-lsp" },
{ "mfussenegger/nvim-jdtls" } -- jdtls bindings for neovim
}