From 87d01580ee206507f8e00241619e4f90af018540 Mon Sep 17 00:00:00 2001 From: Christophe Robillard Date: Mon, 11 Aug 2025 19:27:25 +0200 Subject: [PATCH] update lspconfig --- dotfiles/nvim/lazy-lock.json | 1 + dotfiles/nvim/lua/lazy-plugins.lua | 5 +++++ dotfiles/nvim/lua/plugins/lspconfig.lua | 6 +++++- 3 files changed, 11 insertions(+), 1 deletion(-) diff --git a/dotfiles/nvim/lazy-lock.json b/dotfiles/nvim/lazy-lock.json index fd16fac..1e22d1e 100644 --- a/dotfiles/nvim/lazy-lock.json +++ b/dotfiles/nvim/lazy-lock.json @@ -1,4 +1,5 @@ { + "LuaSnip": { "branch": "master", "commit": "03c8e67eb7293c404845b3982db895d59c0d1538" }, "blink.cmp": { "branch": "main", "commit": "4f38ce99a472932d5776337f08f7a8180f1f571a" }, "fidget.nvim": { "branch": "main", "commit": "d9ba6b7bfe29b3119a610892af67602641da778e" }, "gitsigns.nvim": { "branch": "main", "commit": "1796c7cedfe7e5dd20096c5d7b8b753d8f8d22eb" }, diff --git a/dotfiles/nvim/lua/lazy-plugins.lua b/dotfiles/nvim/lua/lazy-plugins.lua index ddba632..88638ea 100644 --- a/dotfiles/nvim/lua/lazy-plugins.lua +++ b/dotfiles/nvim/lua/lazy-plugins.lua @@ -19,6 +19,11 @@ require('lazy').setup({ require 'plugins/mini', require 'plugins/telescope', require 'plugins/lspconfig', + { + "L3MON4D3/LuaSnip", + version = "v2.*", -- Replace by the latest released major (first number of latest release) + build = "make install_jsregexp" + } }, { ui = { diff --git a/dotfiles/nvim/lua/plugins/lspconfig.lua b/dotfiles/nvim/lua/plugins/lspconfig.lua index a2f1884..aca00fa 100644 --- a/dotfiles/nvim/lua/plugins/lspconfig.lua +++ b/dotfiles/nvim/lua/plugins/lspconfig.lua @@ -197,6 +197,7 @@ return { -- When you add blink.cmp, luasnip, etc. Neovim now has *more* capabilities. -- So, we create new capabilities with blink.cmp, and then broadcast that to the servers. local capabilities = require('blink.cmp').get_lsp_capabilities() + capabilities.textDocument.completion.completionItem.snippetSupport = true -- Enable the following language servers -- Feel free to add/remove any LSPs that you want here. They will automatically be installed. @@ -220,7 +221,10 @@ return { -- But for many setups, the LSP (`ts_ls`) will work just fine -- ts_ls = {}, -- - + -- + cssls = { + capabilities = { capabilities } + }, lua_ls = { -- cmd = { ... }, -- filetypes = { ... },