switched to blink for auto complete
This commit is contained in:
@@ -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'
|
||||
|
||||
|
||||
@@ -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" }
|
||||
)
|
||||
|
||||
|
||||
@@ -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
@@ -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
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user