update and optimize nvim

This commit is contained in:
Tibeuleu
2026-06-09 17:13:34 +02:00
parent d0ee76ef6c
commit 1bf3a84fd0
6 changed files with 137 additions and 124 deletions

View File

@@ -1,71 +1,80 @@
local function bootstrap_pckr()
local pckr_path = vim.fn.stdpath("data") .. "/pckr/pckr.nvim"
local pckr_path = vim.fn.stdpath("data") .. "/pckr/pckr.nvim"
if not (vim.uv or vim.loop).fs_stat(pckr_path) then
vim.fn.system({
'git',
'clone',
"--filter=blob:none",
'https://github.com/lewis6991/pckr.nvim',
pckr_path
})
end
if not (vim.uv or vim.loop).fs_stat(pckr_path) then
vim.fn.system({
'git',
'clone',
"--filter=blob:none",
'https://github.com/lewis6991/pckr.nvim',
pckr_path
})
end
vim.opt.rtp:prepend(pckr_path)
vim.opt.rtp:prepend(pckr_path)
end
bootstrap_pckr()
require('pckr').add{
require('pckr').add {
{
'nvim-telescope/telescope.nvim',
tag = '0.1.1',
-- or branch = '0.1.x',
requires = { {'nvim-lua/plenary.nvim'} }
};
"ellisonleao/gruvbox.nvim";
version = '*',
requires = {
{ 'nvim-lua/plenary.nvim' },
{ 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
}
},
"ellisonleao/gruvbox.nvim",
{
'nvim-treesitter/nvim-treesitter',
run = function()
local ts_update = require('nvim-treesitter.install').update({ with_sync = true })
ts_update()
end,
};
branch = "main",
build = ':TSUpdate'
},
{
'ThePrimeagen/harpoon',
requires = { {'nvim-lua/plenary.nvim'} }
};
'mbbill/undotree';
'tpope/vim-fugitive';
'airblade/vim-gitgutter';
'lukas-reineke/indent-blankline.nvim';
'JoosepAlviste/nvim-ts-context-commentstring';
'numToStr/Comment.nvim';
'lervag/vimtex';
requires = { { 'nvim-lua/plenary.nvim' } }
},
'mbbill/undotree',
'tpope/vim-fugitive',
'airblade/vim-gitgutter',
'lukas-reineke/indent-blankline.nvim',
'JoosepAlviste/nvim-ts-context-commentstring',
{
'nvim-mini/mini.comment',
branch = "main",
config = function()
require('mini.comment').setup()
end,
},
'lervag/vimtex',
{
'neovim/nvim-lspconfig',
requires = {
-- LSP Support
{'williamboman/mason.nvim'},
{'williamboman/mason-lspconfig.nvim'},
{ 'williamboman/mason.nvim' },
{ 'williamboman/mason-lspconfig.nvim' },
-- DAP Support
{'mfussenegger/nvim-dap'},
{'mfussenegger/nvim-dap-python'},
{'jay-babu/mason-nvim-dap.nvim'},
{ 'mfussenegger/nvim-dap' },
{ 'mfussenegger/nvim-dap-python' },
{ 'jay-babu/mason-nvim-dap.nvim' },
-- Autocompletion
{'hrsh7th/nvim-cmp'},
{'hrsh7th/cmp-nvim-lsp'},
{'hrsh7th/cmp-buffer'},
{'hrsh7th/cmp-path'},
{'hrsh7th/cmp-cmdline'},
{ 'hrsh7th/nvim-cmp' },
{ 'hrsh7th/cmp-nvim-lsp' },
{ 'hrsh7th/cmp-buffer' },
{ 'hrsh7th/cmp-path' },
{ 'hrsh7th/cmp-cmdline' },
-- Snippets
{'L3MON4D3/LuaSnip'},
{'saadparwaiz1/cmp_luasnip'},
{'rafamadriz/friendly-snippets'},
{'onsails/lspkind.nvim'},
{
'L3MON4D3/LuaSnip',
run = "make install_jsregexp",
},
{ 'saadparwaiz1/cmp_luasnip' },
{ 'rafamadriz/friendly-snippets' },
{ 'onsails/lspkind.nvim' },
-- Utils
{'j-hui/fidget.nvim'},
{'folke/neodev.nvim'}
};
};
{ 'j-hui/fidget.nvim' },
{ 'folke/neodev.nvim' }
},
},
}