From 92b2689e6f11004e65376e84912e61b9e6c58827 Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Mon, 9 Oct 2023 10:28:53 +0200 Subject: [PATCH 1/4] docs: simplify cmp-emoji example --- lua/plugins/example.lua | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index 78a3370..f84ebdc 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -44,8 +44,7 @@ return { dependencies = { "hrsh7th/cmp-emoji" }, ---@param opts cmp.ConfigSchema opts = function(_, opts) - local cmp = require("cmp") - opts.sources = cmp.config.sources(vim.list_extend(opts.sources, { { name = "emoji" } })) + table.insert(opts.sources, { name = "emoji" }) end, }, From 741ff3aa70336abb6c76ee4c49815ae589a1b852 Mon Sep 17 00:00:00 2001 From: Joshua Davis <114495200+joshryandavis@users.noreply.github.com> Date: Fri, 19 Jan 2024 15:12:29 +0000 Subject: [PATCH 2/4] fix: on_attach deprecated, replace with lsp.on_attach (#45) --- lua/plugins/example.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index f84ebdc..6859c0e 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -102,7 +102,7 @@ return { dependencies = { "jose-elias-alvarez/typescript.nvim", init = function() - require("lazyvim.util").on_attach(function(_, buffer) + require("lazyvim.util").lsp.on_attach(function(_, buffer) -- stylua: ignore vim.keymap.set( "n", "co", "TypescriptOrganizeImports", { buffer = buffer, desc = "Organize Imports" }) vim.keymap.set("n", "cR", "TypescriptRenameFile", { desc = "Rename File", buffer = buffer }) From 914c60ae75cdf61bf77434d2ad2fbf775efd963b Mon Sep 17 00:00:00 2001 From: Folke Lemaitre Date: Thu, 21 Mar 2024 17:47:04 +0100 Subject: [PATCH 3/4] fix: removed some outdated examples --- lua/plugins/example.lua | 20 -------------------- 1 file changed, 20 deletions(-) diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index 6859c0e..de22bc8 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -30,14 +30,6 @@ return { -- disable trouble { "folke/trouble.nvim", enabled = false }, - -- add symbols-outline - { - "simrat39/symbols-outline.nvim", - cmd = "SymbolsOutline", - keys = { { "cs", "SymbolsOutline", desc = "Symbols Outline" } }, - config = true, - }, - -- override nvim-cmp and add cmp-emoji { "hrsh7th/nvim-cmp", @@ -71,18 +63,6 @@ return { }, }, - -- add telescope-fzf-native - { - "telescope.nvim", - dependencies = { - "nvim-telescope/telescope-fzf-native.nvim", - build = "make", - config = function() - require("telescope").load_extension("fzf") - end, - }, - }, - -- add pyright to lspconfig { "neovim/nvim-lspconfig", From 75625b29e8891938218043a7d619d67f79666a8d Mon Sep 17 00:00:00 2001 From: denartha10 <98868685+denartha10@users.noreply.github.com> Date: Fri, 29 Mar 2024 16:53:46 +0000 Subject: [PATCH 4/4] fix: Deperecated syntax in bootstrapping of LazyVim starter (#56) In the current state of the lazy.nvim repository, certain updates have been made. However, there remains an outdated reference to 'vim.loop' for the bootstrapping process of 'lazyvim' in this start repo for LazyVim, despite 'vim.loop' being deprecated. To rectify this, I suggest a minor alteration by replacing it with the following code snippet: ```lua if not (vim.uv or vim.loop).fs_stat(lazypath) then -- bootstrap do ``` --- lua/config/lazy.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index 891b190..fd269d7 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -1,5 +1,6 @@ local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" -if not vim.loop.fs_stat(lazypath) then + +if not (vim.uv or vim.loop).fs_stat(lazypath) then -- bootstrap lazy.nvim -- stylua: ignore vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath })