feat(nvim): upgrade kickstart to latest commit

This commit is contained in:
João Paulo Dubas 2024-03-29 20:28:39 +00:00
parent d9a33dc515
commit 137ea7fc2e
Signed by: joao.dubas
SSH Key Fingerprint: SHA256:V1mixgOGRc/YMhGx/DNkOSmJxgA2vHNrDZEk3wt/kOA
2 changed files with 10 additions and 8 deletions

View File

@ -169,7 +169,7 @@ 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 773e482d4b40cec4095e4b60fbd753cb69b3f51b \
&& git reset --hard 93fde0556e82ead2a5392ccb678359fa59437b98 \
&& git apply /tmp/updates.patch \
&& cp /tmp/init.lua ${XDG_CONFIG_HOME}/nvim/lua/custom/plugins \
&& nvim --headless "+Lazy! sync" +qa

View File

@ -1,5 +1,5 @@
diff --git a/init.lua b/init.lua
index 013fcc2..ca98546 100644
index db55a9e..1a11f8a 100644
--- a/init.lua
+++ b/init.lua
@@ -91,7 +91,7 @@ vim.g.mapleader = ' '
@ -18,9 +18,8 @@ index 013fcc2..ca98546 100644
--- vim.opt.relativenumber = true
+vim.opt.relativenumber = true
--- Enable mouse mode, can be useful for resizing splits for example!
-- Enable mouse mode, can be useful for resizing splits for example!
-vim.opt.mouse = 'a'
+-- Disable mouse mode
+vim.opt.mouse = ''
-- Don't show the mode, since it's already in the status line
@ -112,12 +111,14 @@ index 013fcc2..ca98546 100644
require('lspconfig')[server_name].setup(server)
end,
},
@@ -791,7 +843,31 @@ require('lazy').setup({
@@ -791,7 +843,34 @@ require('lazy').setup({
'nvim-treesitter/nvim-treesitter',
build = ':TSUpdate',
opts = {
- ensure_installed = { 'bash', 'c', 'html', 'lua', 'markdown', 'vim', 'vimdoc' },
- ensure_installed = { 'bash', 'c', 'html', 'lua', 'luadoc', 'markdown', 'vim', 'vimdoc' },
+ ensure_installed = {
+ 'bash',
+ 'c',
+ 'css',
+ 'dockerfile',
+ 'eex',
@ -131,6 +132,7 @@ index 013fcc2..ca98546 100644
+ 'javascript',
+ 'json',
+ 'lua',
+ 'luadoc',
+ 'markdown',
+ 'markdown_inline',
+ 'python',
@ -145,7 +147,7 @@ index 013fcc2..ca98546 100644
-- Autoinstall languages that are not installed
auto_install = true,
highlight = {
@@ -828,7 +904,7 @@ require('lazy').setup({
@@ -828,7 +907,7 @@ require('lazy').setup({
-- Uncomment any of the lines below to enable them (you will need to restart nvim).
--
-- require 'kickstart.plugins.debug',
@ -154,7 +156,7 @@ index 013fcc2..ca98546 100644
-- require 'kickstart.plugins.lint',
-- NOTE: The import below can automatically add your own plugins, configuration, etc from `lua/custom/plugins/*.lua`
@@ -836,7 +912,7 @@ require('lazy').setup({
@@ -836,7 +915,7 @@ require('lazy').setup({
--
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`