From f869377524dbf3d42440b505a571a89d1700d5b6 Mon Sep 17 00:00:00 2001 From: Joe Date: Thu, 18 Jan 2024 13:27:23 +0100 Subject: up --- .config/nvim/init.lua | 2 +- .config/nvim/lua/pack.lua | 131 --------------------------------------------- .config/nvim/lua/packs.lua | 131 +++++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 132 insertions(+), 132 deletions(-) delete mode 100644 .config/nvim/lua/pack.lua create mode 100644 .config/nvim/lua/packs.lua (limited to '.config') diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 91946e7..c703cbc 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -15,7 +15,7 @@ Confdir = os.getenv('XDG_CONFIG_HOME') vim.cmd('set runtimepath^=/home/r_bousset/.config/nvim runtimepath+=/home/jozan/.config/nvim/after') vim.cmd('let &packpath = &runtimepath') -require('pack') +require('packs') require('settings') require('bindings') require('langs') diff --git a/.config/nvim/lua/pack.lua b/.config/nvim/lua/pack.lua deleted file mode 100644 index 56745e0..0000000 --- a/.config/nvim/lua/pack.lua +++ /dev/null @@ -1,131 +0,0 @@ -vim.cmd.packadd('packer.nvim') - -return require('packer').startup({function(use) - -- Packer can manage itself - use 'wbthomason/packer.nvim' - use { - 'nvim-telescope/telescope.nvim', - branch = '0.1.x', - requires = { {'nvim-lua/plenary.nvim'} } - } - use { - 'windwp/nvim-autopairs', - config = function() require('nvim-autopairs').setup {} end - } - use 'jiangmiao/auto-pairs' - -- use 'folke/which-key.nvim' - use 'lewis6991/gitsigns.nvim' - -- use 'mhinz/vim-startify' - -- use 'mg979/vim-visual-multi' - use 'preservim/tagbar' - -- use 'preservim/nerdcommenter' - use { - 'numToStr/Comment.nvim', - requires = { {'JoosepAlviste/nvim-ts-context-commentstring'} }, - config = function() - require('Comment').setup() - end - } - use { - 'nvim-tree/nvim-tree.lua', - requires = {'nvim-tree/nvim-web-devicons'} - } - use 'mbbill/undotree' - -- use 'brglng/vim-sidebar-manager' - use 'ellisonleao/gruvbox.nvim' - use 'sainnhe/gruvbox-material' - use 'navarasu/onedark.nvim' - use 'rebelot/kanagawa.nvim' - use 'theniceboy/nvim-deus' - use 'tpope/vim-fugitive' - use({ - "kylechui/nvim-surround", - requires = { - {'nvim-treesitter/nvim-treesitter'}, - {'nvim-treesitter/nvim-treesitter-textobjects'}, - }, - tag = "*", -- Use for stability; omit to use `main` branch for the latest features - config = function() - require("nvim-surround").setup({ - -- Configuration here, or leave empty to use defaults - }) - end - }) - -- use 'tpope/vim-surround' - use 'nvim-lualine/lualine.nvim' - -- use 'voldikss/vim-floaterm' - -- use 'akinsho/toggleterm.nvim' - use 'chrisbra/csv.vim' - use { - 'ThePrimeagen/harpoon', - branch = 'harpoon2', - requires = { {'nvim-lua/plenary.nvim'} } - } - use 'HiPhish/rainbow-delimiters.nvim' - use { - 'nvim-treesitter/nvim-treesitter-textobjects', - requires = { {'nvim-treesitter/nvim-treesitter'} }, - run = function() - local ts_update = require('nvim-treesitter.install').update({ with_sync = true }) - ts_update() - end,} - use { - 'VonHeikemen/lsp-zero.nvim', - branch = 'v3.x', - requires = { - -- LSP Support - {'neovim/nvim-lspconfig'}, - {'williamboman/mason.nvim'}, - {'williamboman/mason-lspconfig.nvim'}, - - -- Autocompletion - {'hrsh7th/nvim-cmp'}, - {'hrsh7th/cmp-buffer'}, - {'hrsh7th/cmp-path'}, - {'saadparwaiz1/cmp_luasnip'}, - {'hrsh7th/cmp-nvim-lsp'}, - {'hrsh7th/cmp-nvim-lua'}, - - -- Snippets - {'L3MON4D3/LuaSnip'}, - {'rafamadriz/friendly-snippets'}, - } - } - use({ - 'folke/trouble.nvim', - requires = { - {'nvim-tree/nvim-web-devicons'}, - }, - }) - use { - 'lukas-reineke/indent-blankline.nvim', - config = function() - local highlight = { - "Whitespace", - } - require('ibl').setup { - debounce = 100, - indent = { highlight = highlight, char = '┊', }, - scope = { show_start = false, show_end = false }, - } - end, - } - use ({ - 'folke/todo-comments.nvim', - requires = { {'nvim-lua/plenary.nvim'} }, - config = function() - require('todo-comments.config').setup{ - highlight = { - multiline = false, - }, - } - require('todo-comments') - end - }) - use 'onsails/lspkind.nvim' -end, - config = { - display = { - open_fn = require('packer.util').float, - } -}}) diff --git a/.config/nvim/lua/packs.lua b/.config/nvim/lua/packs.lua new file mode 100644 index 0000000..56745e0 --- /dev/null +++ b/.config/nvim/lua/packs.lua @@ -0,0 +1,131 @@ +vim.cmd.packadd('packer.nvim') + +return require('packer').startup({function(use) + -- Packer can manage itself + use 'wbthomason/packer.nvim' + use { + 'nvim-telescope/telescope.nvim', + branch = '0.1.x', + requires = { {'nvim-lua/plenary.nvim'} } + } + use { + 'windwp/nvim-autopairs', + config = function() require('nvim-autopairs').setup {} end + } + use 'jiangmiao/auto-pairs' + -- use 'folke/which-key.nvim' + use 'lewis6991/gitsigns.nvim' + -- use 'mhinz/vim-startify' + -- use 'mg979/vim-visual-multi' + use 'preservim/tagbar' + -- use 'preservim/nerdcommenter' + use { + 'numToStr/Comment.nvim', + requires = { {'JoosepAlviste/nvim-ts-context-commentstring'} }, + config = function() + require('Comment').setup() + end + } + use { + 'nvim-tree/nvim-tree.lua', + requires = {'nvim-tree/nvim-web-devicons'} + } + use 'mbbill/undotree' + -- use 'brglng/vim-sidebar-manager' + use 'ellisonleao/gruvbox.nvim' + use 'sainnhe/gruvbox-material' + use 'navarasu/onedark.nvim' + use 'rebelot/kanagawa.nvim' + use 'theniceboy/nvim-deus' + use 'tpope/vim-fugitive' + use({ + "kylechui/nvim-surround", + requires = { + {'nvim-treesitter/nvim-treesitter'}, + {'nvim-treesitter/nvim-treesitter-textobjects'}, + }, + tag = "*", -- Use for stability; omit to use `main` branch for the latest features + config = function() + require("nvim-surround").setup({ + -- Configuration here, or leave empty to use defaults + }) + end + }) + -- use 'tpope/vim-surround' + use 'nvim-lualine/lualine.nvim' + -- use 'voldikss/vim-floaterm' + -- use 'akinsho/toggleterm.nvim' + use 'chrisbra/csv.vim' + use { + 'ThePrimeagen/harpoon', + branch = 'harpoon2', + requires = { {'nvim-lua/plenary.nvim'} } + } + use 'HiPhish/rainbow-delimiters.nvim' + use { + 'nvim-treesitter/nvim-treesitter-textobjects', + requires = { {'nvim-treesitter/nvim-treesitter'} }, + run = function() + local ts_update = require('nvim-treesitter.install').update({ with_sync = true }) + ts_update() + end,} + use { + 'VonHeikemen/lsp-zero.nvim', + branch = 'v3.x', + requires = { + -- LSP Support + {'neovim/nvim-lspconfig'}, + {'williamboman/mason.nvim'}, + {'williamboman/mason-lspconfig.nvim'}, + + -- Autocompletion + {'hrsh7th/nvim-cmp'}, + {'hrsh7th/cmp-buffer'}, + {'hrsh7th/cmp-path'}, + {'saadparwaiz1/cmp_luasnip'}, + {'hrsh7th/cmp-nvim-lsp'}, + {'hrsh7th/cmp-nvim-lua'}, + + -- Snippets + {'L3MON4D3/LuaSnip'}, + {'rafamadriz/friendly-snippets'}, + } + } + use({ + 'folke/trouble.nvim', + requires = { + {'nvim-tree/nvim-web-devicons'}, + }, + }) + use { + 'lukas-reineke/indent-blankline.nvim', + config = function() + local highlight = { + "Whitespace", + } + require('ibl').setup { + debounce = 100, + indent = { highlight = highlight, char = '┊', }, + scope = { show_start = false, show_end = false }, + } + end, + } + use ({ + 'folke/todo-comments.nvim', + requires = { {'nvim-lua/plenary.nvim'} }, + config = function() + require('todo-comments.config').setup{ + highlight = { + multiline = false, + }, + } + require('todo-comments') + end + }) + use 'onsails/lspkind.nvim' +end, + config = { + display = { + open_fn = require('packer.util').float, + } +}}) -- cgit v1.2.3