From 7a0a32be919674226ecfa4ae9075f8a983661fd8 Mon Sep 17 00:00:00 2001 From: Steve Beaulac Date: Thu, 2 Apr 2026 13:28:22 -0400 Subject: [PATCH] feat(nvim): updated lsp for new v0.12 --- config/nvim/lua/plugins/ide.lua | 24 ++++++++++++++++++++++-- 1 file changed, 22 insertions(+), 2 deletions(-) diff --git a/config/nvim/lua/plugins/ide.lua b/config/nvim/lua/plugins/ide.lua index 5ceeba0..8abdcc1 100644 --- a/config/nvim/lua/plugins/ide.lua +++ b/config/nvim/lua/plugins/ide.lua @@ -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", "", function() + if not vim.lsp.inline_completion.get() then + return "" + 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 = {