feat(nvim): updated lsp for new v0.12

This commit is contained in:
2026-04-02 13:28:22 -04:00
parent d69c72b985
commit 7a0a32be91
+22 -2
View File
@@ -1271,7 +1271,7 @@ return {
end,
},
{ 'williamboman/mason.nvim', lazy = true, opts = {} },
{ 'williamboman/mason.nvim', lazy = true, opts = {} },
{ 'williamboman/mason-lspconfig.nvim', lazy = true },
{ 'WhoIsSethDaniel/mason-tool-installer.nvim', lazy = true },
{
@@ -1279,6 +1279,13 @@ return {
dependencies = {
{ 'SmiteshP/nvim-navic', lazy = true },
},
keys = function()
vim.keymap.set("i", "<C-.>", function()
if not vim.lsp.inline_completion.get() then
return "<C-.>"
end
end, { expr = true, desc = "Accept the current inline completion" })
end,
config = function()
vim.api.nvim_create_autocmd('LspAttach', {
@@ -1393,11 +1400,23 @@ return {
}
}
},
rust_analyzer={},
ts_ls= {},
html= {},
eslint= {},
jsonls= {},
jdtls= {},
-- copilot = {
-- cmd = { "copilot-language-server", "--stdio" },
-- init_options = {
-- name = "Neovim",
-- version = tostring(vim.version()),
-- },
-- editorPluginInfo = {
-- name = "Neovim",
-- version = tostring(vim.version()),
-- },
-- },
}
local ensure_installed = vim.tbl_keys(servers or {})
@@ -1423,6 +1442,7 @@ return {
vim.lsp.config(server, cfg)
vim.lsp.enable(server)
end
-- vim.lsp.inline_completion.enable();
vim.lsp.enable("rust-analyzer", false)
@@ -1513,7 +1533,7 @@ return {
{
'mrcjkb/rustaceanvim',
version = '^6', -- Recommended
-- version = '^6', -- Recommended
lazy = true,
ft = {'rust'},
opts = {