From 40f7bdc30c6f690ddbb5c6053a5c628b175aa0f2 Mon Sep 17 00:00:00 2001 From: Joao P Dubas Date: Thu, 20 Feb 2025 13:04:20 +0000 Subject: [PATCH] feat(neovim): upgrade kickstart.nvim to latest commit (#186) Reviewed-on: https://gitea.dubas.dev/joao.dubas/ide/pulls/186 Co-authored-by: Joao P Dubas Co-committed-by: Joao P Dubas --- Dockerfile | 3 ++- patch/kickstart.nvim/updates.patch | 34 ++++++++++++++++++++---------- 2 files changed, 25 insertions(+), 12 deletions(-) diff --git a/Dockerfile b/Dockerfile index e3672b1..7d3d5af 100644 --- a/Dockerfile +++ b/Dockerfile @@ -181,11 +181,12 @@ RUN fish -c true \ && echo 'alias nh="nvim --listen 0.0.0.0:6666 --headless &> /dev/null"' >> ${XDG_CONFIG_HOME}/fish/config.fish # git configuration +ENV NEOVIM_KICKSTART_VERSION 34e7d29aa7b6e95cf09d62baf4c9082db5b129c0 COPY ./patch/kickstart.nvim/updates.patch /tmp COPY ./config/nvim/lua/custom/plugins/init.lua /tmp RUN git clone https://github.com/nvim-lua/kickstart.nvim.git "${XDG_CONFIG_HOME}"/nvim \ && cd ${XDG_CONFIG_HOME}/nvim \ - && git reset --hard 94f551b8039a3f6399d2ea3373c4774005ede4db \ + && git reset --hard ${NEOVIM_KICKSTART_VERSION} \ && git apply /tmp/updates.patch \ && cp /tmp/init.lua ${XDG_CONFIG_HOME}/nvim/lua/custom/plugins \ && nvim --headless "+Lazy! sync" +qa diff --git a/patch/kickstart.nvim/updates.patch b/patch/kickstart.nvim/updates.patch index 29e96b0..8ef0d60 100644 --- a/patch/kickstart.nvim/updates.patch +++ b/patch/kickstart.nvim/updates.patch @@ -1,5 +1,5 @@ diff --git a/init.lua b/init.lua -index 99c7c9c..4e49b43 100644 +index 5cac3d1..099855a 100644 --- a/init.lua +++ b/init.lua @@ -91,7 +91,7 @@ vim.g.mapleader = ' ' @@ -39,7 +39,7 @@ index 99c7c9c..4e49b43 100644 -- [[ Basic Keymaps ]] -- See `:help vim.keymap.set()` -@@ -639,6 +647,27 @@ require('lazy').setup({ +@@ -671,6 +679,27 @@ require('lazy').setup({ -- ts_ls = {}, -- @@ -67,7 +67,7 @@ index 99c7c9c..4e49b43 100644 lua_ls = { -- cmd = { ... }, -- filetypes = { ... }, -@@ -653,6 +682,32 @@ require('lazy').setup({ +@@ -685,6 +714,32 @@ require('lazy').setup({ }, }, }, @@ -100,7 +100,7 @@ index 99c7c9c..4e49b43 100644 } -- Ensure the servers and tools above are installed -@@ -682,6 +737,33 @@ require('lazy').setup({ +@@ -716,6 +771,33 @@ require('lazy').setup({ -- by the server configuration above. Useful when disabling -- certain features of an LSP (for example, turning off formatting for ts_ls) server.capabilities = vim.tbl_deep_extend('force', {}, capabilities, server.capabilities or {}) @@ -134,7 +134,7 @@ index 99c7c9c..4e49b43 100644 require('lspconfig')[server_name].setup(server) end, }, -@@ -840,6 +922,7 @@ require('lazy').setup({ +@@ -875,6 +957,7 @@ require('lazy').setup({ -- set group index to 0 to skip loading LuaLS completions as lazydev recommends it group_index = 0, }, @@ -142,7 +142,7 @@ index 99c7c9c..4e49b43 100644 { name = 'nvim_lsp' }, { name = 'luasnip' }, { name = 'path' }, -@@ -854,12 +937,19 @@ require('lazy').setup({ +@@ -890,19 +973,26 @@ require('lazy').setup({ -- -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`. 'folke/tokyonight.nvim', @@ -152,7 +152,19 @@ index 99c7c9c..4e49b43 100644 + 'rjshkhr/shadow.nvim' + }, priority = 1000, -- Make sure to load this before all the other start plugins. - init = function() + config = function() + ---@diagnostic disable-next-line: missing-fields +- require('tokyonight').setup { +- styles = { +- comments = { italic = false }, -- Disable italics in comments +- }, +- } ++ -- require('tokyonight').setup { ++ -- styles = { ++ -- comments = { italic = false }, -- Disable italics in comments ++ -- }, ++ -- } + -- Load the colorscheme here. -- Like many other themes, this one has different styles, and you could load -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'. @@ -160,10 +172,10 @@ index 99c7c9c..4e49b43 100644 + -- For monoglow the following variants area available: + -- 'monoglow-z', 'monoglow-lack', or 'monoglow-void'. + vim.cmd.colorscheme 'shadow' + end, + }, - -- You can configure highlights by doing something like: - vim.cmd.hi 'Comment gui=none' -@@ -912,7 +1002,39 @@ require('lazy').setup({ +@@ -952,7 +1042,39 @@ require('lazy').setup({ main = 'nvim-treesitter.configs', -- Sets main module to use for opts -- [[ Configure Treesitter ]] See `:help nvim-treesitter` opts = { @@ -204,7 +216,7 @@ index 99c7c9c..4e49b43 100644 -- Autoinstall languages that are not installed auto_install = true, highlight = { -@@ -942,17 +1064,17 @@ require('lazy').setup({ +@@ -982,17 +1104,17 @@ require('lazy').setup({ -- Uncomment any of the lines below to enable them (you will need to restart nvim). -- -- require 'kickstart.plugins.debug',