Re-arranged nvim packages

Made them have a bit of a more logical strucutre.
This commit is contained in:
Gabe Venberg 2022-01-21 18:35:32 -06:00
parent 6ac0abba12
commit e6a8b67e6e
2 changed files with 86 additions and 71 deletions

View file

@ -1,9 +0,0 @@
"TODO: cleanup this function!
function! Minimal_foldtext()
let lines_count = v:foldend - v:foldstart + 1
let lines_count_text = '+' . v:folddashes . '| ' . printf("%10S" , lines_count) . ' lines |'
let line_level_text = '| ' . printf("%8S" , 'level ' . v:foldlevel) . ' |'
let fold_text_end = line_level_text . repeat('-',8)
let fold_text_length = strlen(lines_count_text . fold_text_end) + &foldcolumn
return lines_count_text . repeat('-' , winwidth(0) - fold_text_length - 4) . fold_text_end
endfunction

View file

@ -6,18 +6,50 @@ if fn.empty(fn.glob(install_path)) > 0 then
end end
return require('packer').startup(function(use) return require('packer').startup(function(use)
--base plugins.
use 'wbthomason/packer.nvim' use 'wbthomason/packer.nvim'
use { use {'nvim-treesitter/nvim-treesitter',
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate' run = ':TSUpdate'
} }
use 'neovim/nvim-lspconfig' use 'neovim/nvim-lspconfig'
use 'yamatsum/nvim-cursorline' use {'hrsh7th/nvim-cmp',
requires = {
'neovim/nvim-lspconfig',
'hrsh7th/cmp-nvim-lsp',
'saadparwaiz1/cmp_luasnip',
'L3MON4D3/LuaSnip'
}
}
use 'simrat39/rust-tools.nvim' use {'nvim-telescope/telescope.nvim',
requires = {
{'nvim-lua/plenary.nvim'},
{'nvim-lua/popup.nvim'},
{'nvim-treesitter/nvim-treesitter'},
{'nvim-telescope/telescope-fzf-native.nvim', run = 'make' },
{'nvim-telescope/telescope-symbols.nvim'},
{'nvim-telescope/telescope-file-browser.nvim'},
},
config=function()
require'telescope'.load_extension('fzf')
end
}
use {'kyazdani42/nvim-tree.lua',
requires = {
'kyazdani42/nvim-web-devicons', -- optional, for file icon
},
config = function() require'nvim-tree'.setup {} end
}
--UI stuff
use 'yamatsum/nvim-cursorline'
use {'stevearc/dressing.nvim', use {'stevearc/dressing.nvim',
config=function() config=function()
@ -56,6 +88,7 @@ return require('packer').startup(function(use)
extensions = {} extensions = {}
} end, } end,
} }
use {'kdheepak/tabline.nvim', use {'kdheepak/tabline.nvim',
config = function() config = function()
require'tabline'.setup { require'tabline'.setup {
@ -81,59 +114,17 @@ return require('packer').startup(function(use)
requires = { { 'hoob3rt/lualine.nvim', opt=true }, {'kyazdani42/nvim-web-devicons', opt = true} } requires = { { 'hoob3rt/lualine.nvim', opt=true }, {'kyazdani42/nvim-web-devicons', opt = true} }
} }
use {
use {'numToStr/Comment.nvim', "folke/trouble.nvim",
config = function() requires = "kyazdani42/nvim-web-devicons",
require('Comment').setup() config = function()
end require("trouble").setup {
}
use {'glepnir/lspsaga.nvim',
requires = {
'neovim/nvim-lspconfig',
} }
} end
use {'hrsh7th/nvim-cmp',
requires = {
'neovim/nvim-lspconfig',
'hrsh7th/cmp-nvim-lsp',
'saadparwaiz1/cmp_luasnip',
'L3MON4D3/LuaSnip'
}
}
use {'folke/todo-comments.nvim',
requires = 'nvim-lua/plenary.nvim',
config = function()
require('todo-comments').setup()
end
}
use {'nvim-telescope/telescope.nvim',
requires = {
{'nvim-lua/plenary.nvim'},
{'nvim-lua/popup.nvim'},
{'nvim-treesitter/nvim-treesitter'},
{'nvim-telescope/telescope-fzf-native.nvim', run = 'make' },
{'nvim-telescope/telescope-symbols.nvim'},
{'https://github.com/nvim-telescope/telescope-file-browser.nvim'},
},
config=function()
require'telescope'.load_extension('fzf')
end
} }
use {'romgrk/nvim-treesitter-context', use {'romgrk/nvim-treesitter-context',
requires = 'nvim-treesitter/nvim-treesitter', requires = 'nvim-treesitter/nvim-treesitter',
config=function() require('treesitter-context').setup() end,
}
use {'kyazdani42/nvim-tree.lua',
requires = {
'kyazdani42/nvim-web-devicons', -- optional, for file icon
},
config = function() require'nvim-tree'.setup {} end
} }
use {'lewis6991/gitsigns.nvim', use {'lewis6991/gitsigns.nvim',
@ -146,16 +137,6 @@ return require('packer').startup(function(use)
use 'tversteeg/registers.nvim' use 'tversteeg/registers.nvim'
use {
'sudormrfbin/cheatsheet.nvim',
requires = {
{'nvim-telescope/telescope.nvim'},
{'nvim-lua/popup.nvim'},
{'nvim-lua/plenary.nvim'},
}
}
use {'lewis6991/spellsitter.nvim', use {'lewis6991/spellsitter.nvim',
config=function() require('spellsitter').setup() end config=function() require('spellsitter').setup() end
} }
@ -171,10 +152,53 @@ return require('packer').startup(function(use)
end end
} }
--editing utilities
use {'numToStr/Comment.nvim',
config = function()
require('Comment').setup()
end
}
--misc
use {'folke/todo-comments.nvim',
requires = 'nvim-lua/plenary.nvim',
config = function()
require('todo-comments').setup()
end
}
use {'sudormrfbin/cheatsheet.nvim',
requires = {
{'nvim-telescope/telescope.nvim'},
{'nvim-lua/popup.nvim'},
{'nvim-lua/plenary.nvim'},
}
}
--color scheme stuff.
use 'bluz71/vim-moonfly-colors' use 'bluz71/vim-moonfly-colors'
use 'bluz71/vim-nightfly-guicolors' use 'bluz71/vim-nightfly-guicolors'
--language specific tools.
use{'eddiebergman/nvim-treesitter-pyfold',
config=function ()
require('nvim-treesitter.configs').setup {
pyfold = {
enable = true,
custom_foldtext = true -- Sets provided foldtext on window where module is active
}
}
end
}
use 'simrat39/rust-tools.nvim'
if Packer_Bootstrap then if Packer_Bootstrap then
require('packer').sync() require('packer').sync()
end end