From a2f39569a96d7c9f99823c792a5318c162dfdf93 Mon Sep 17 00:00:00 2001 From: Buddy Sandidge Date: Fri, 13 Sep 2024 11:01:20 -0700 Subject: [PATCH] Update nvim config --- .chezmoiexternal.toml.tmpl | 2 +- dot_config/nvim/init.lua | 4 +++- dot_config/nvim/lua/plugins/lsp.lua.tmpl | 18 ++++++++++++------ dot_config/nvim/lua/plugins/snippets.lua | 2 +- 4 files changed, 17 insertions(+), 9 deletions(-) diff --git a/.chezmoiexternal.toml.tmpl b/.chezmoiexternal.toml.tmpl index 2e8d48a..677ddf6 100644 --- a/.chezmoiexternal.toml.tmpl +++ b/.chezmoiexternal.toml.tmpl @@ -2,7 +2,7 @@ #{{- /* vim: set filetype=toml: */ -}} [".local/share/nvim/lazy/lazy.nvim"] type = "archive" - url = "https://github.com/folke/lazy.nvim/archive/refs/tags/v10.23.0.tar.gz" + url = "https://github.com/folke/lazy.nvim/archive/refs/tags/v11.14.1.tar.gz" exact = true stripComponents = 1 refreshPeriod = "2196h" diff --git a/dot_config/nvim/init.lua b/dot_config/nvim/init.lua index 0ae3d93..0917d46 100644 --- a/dot_config/nvim/init.lua +++ b/dot_config/nvim/init.lua @@ -1,3 +1,5 @@ require('core.config') vim.opt.runtimepath:prepend(vim.fn.stdpath('data') .. '/lazy/lazy.nvim') -require('lazy').setup('plugins', {}) +require('lazy').setup('plugins', { + version = "*", +}) diff --git a/dot_config/nvim/lua/plugins/lsp.lua.tmpl b/dot_config/nvim/lua/plugins/lsp.lua.tmpl index 4763843..0993063 100644 --- a/dot_config/nvim/lua/plugins/lsp.lua.tmpl +++ b/dot_config/nvim/lua/plugins/lsp.lua.tmpl @@ -85,7 +85,7 @@ local function config() cssls = {}, --{{ if lookPath "node" -}} eslint = {}, - tsserver = {}, + ts_ls = {}, --{{- end }} --{{ if lookPath "go" -}} gopls = {}, @@ -122,12 +122,18 @@ end return { 'neovim/nvim-lspconfig', name = 'lspconfig', + tag = 'v1.0.0', config = config, dependencies = { - { 'williamboman/mason.nvim', tag = 'v1.*', opts = {} }, - { 'williamboman/mason-lspconfig.nvim', tag = 'v1.*' }, - { 'j-hui/fidget.nvim', tag = 'legacy', opts = {} }, - { 'folke/neodev.nvim', tag = 'v2.*', opts = {} }, - { 'folke/trouble.nvim', tag = 'v2.*' }, + { 'williamboman/mason.nvim', tag = 'v1.10.0', opts = {} }, + { 'williamboman/mason-lspconfig.nvim', tag = 'v1.31.0' }, + { 'j-hui/fidget.nvim', tag = 'legacy', opts = {} }, + { 'folke/trouble.nvim', tag = 'v3.6.0' }, + -- { 'folke/lazydev.nvim', + -- tag = 'v1.8.0', + -- ft = "lua", + -- opts = { + -- } + -- }, }, } diff --git a/dot_config/nvim/lua/plugins/snippets.lua b/dot_config/nvim/lua/plugins/snippets.lua index 698dd5b..12867f0 100644 --- a/dot_config/nvim/lua/plugins/snippets.lua +++ b/dot_config/nvim/lua/plugins/snippets.lua @@ -8,6 +8,6 @@ end return { 'L3MON4D3/LuaSnip', config = config, - tag = 'v2.*', + tag = 'v2.3.0', dependencies = {}, }