mirror of
https://github.com/pnx/dotfiles
synced 2026-07-02 22:43:41 +02:00
nvim: remove nvim-cmp
This commit is contained in:
parent
32711d0db2
commit
908e7ab026
2 changed files with 1 additions and 38 deletions
|
|
@ -162,20 +162,6 @@ return {
|
||||||
require("luasnip.loaders.from_vscode").lazy_load()
|
require("luasnip.loaders.from_vscode").lazy_load()
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"hrsh7th/nvim-cmp",
|
|
||||||
optional = true,
|
|
||||||
dependencies = {
|
|
||||||
"saadparwaiz1/cmp_luasnip"
|
|
||||||
},
|
|
||||||
opts = {
|
|
||||||
snippet = {
|
|
||||||
expand = function(args)
|
|
||||||
require("luasnip").lsp_expand(args.body)
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
opts = {},
|
opts = {},
|
||||||
config = function(_, opts)
|
config = function(_, opts)
|
||||||
|
|
|
||||||
|
|
@ -9,27 +9,6 @@ return {
|
||||||
{ "williamboman/mason-lspconfig.nvim", config = function () end }
|
{ "williamboman/mason-lspconfig.nvim", config = function () end }
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
{
|
|
||||||
-- Autocomplete source
|
|
||||||
"hrsh7th/nvim-cmp",
|
|
||||||
optional = true,
|
|
||||||
dependencies = {
|
|
||||||
"hrsh7th/cmp-nvim-lsp",
|
|
||||||
"hrsh7th/cmp-nvim-lsp-signature-help"
|
|
||||||
},
|
|
||||||
},
|
|
||||||
-- Using blink.nvim atm.
|
|
||||||
-- {
|
|
||||||
-- "ray-x/lsp_signature.nvim",
|
|
||||||
-- event = "VeryLazy",
|
|
||||||
-- opts = {
|
|
||||||
-- hint_enable = false,
|
|
||||||
-- fix_pos = true,
|
|
||||||
-- handler_opts = {
|
|
||||||
-- border = "none"
|
|
||||||
-- }
|
|
||||||
-- },
|
|
||||||
-- },
|
|
||||||
-- LSP often return markdown that neovim parses.
|
-- LSP often return markdown that neovim parses.
|
||||||
-- make sure we have a plugin that can render markdown to nicer text
|
-- make sure we have a plugin that can render markdown to nicer text
|
||||||
{
|
{
|
||||||
|
|
@ -87,10 +66,8 @@ return {
|
||||||
local lspconfig = require("lspconfig")
|
local lspconfig = require("lspconfig")
|
||||||
local utils = require("user.utils.lsp")
|
local utils = require("user.utils.lsp")
|
||||||
local augroup = vim.api.nvim_create_augroup("Lsp", {})
|
local augroup = vim.api.nvim_create_augroup("Lsp", {})
|
||||||
local has_cmp, cmp_lsp = pcall(require, "cmp_nvim_lsp")
|
|
||||||
local capabilities = vim.tbl_deep_extend('force',
|
local capabilities = vim.tbl_deep_extend('force',
|
||||||
vim.lsp.protocol.make_client_capabilities() or {},
|
vim.lsp.protocol.make_client_capabilities() or {})
|
||||||
has_cmp and cmp_lsp.default_capabilities() or {})
|
|
||||||
|
|
||||||
--- @param server string
|
--- @param server string
|
||||||
local function setup(server)
|
local function setup(server)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue