307 lines
7.6 KiB
Lua
Executable file
307 lines
7.6 KiB
Lua
Executable file
vim.cmd [[packadd packer.nvim]]
|
|
|
|
return require('packer').startup(function(use)
|
|
-- Packer can manage itself
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
use {
|
|
'nvim-telescope/telescope.nvim', tag = '0.1.0',
|
|
-- or , branch = '0.1.x',
|
|
requires = { {'nvim-lua/plenary.nvim'} }
|
|
}
|
|
|
|
-- theme
|
|
|
|
-- syntax highlights
|
|
use( 'nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'})
|
|
use('nvim-treesitter/playground')
|
|
--undos
|
|
use("mbbill/undotree")
|
|
--lsp
|
|
use {
|
|
'VonHeikemen/lsp-zero.nvim',
|
|
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'},
|
|
}
|
|
}
|
|
|
|
-- debugging
|
|
use 'mfussenegger/nvim-dap'
|
|
--rust
|
|
use 'simrat39/rust-tools.nvim'
|
|
use {
|
|
'saecki/crates.nvim',
|
|
tag = 'v0.3.0',
|
|
requires = { 'nvim-lua/plenary.nvim' },
|
|
config = function()
|
|
require('crates').setup()
|
|
end,
|
|
}
|
|
|
|
--zig/useless
|
|
use 'ziglang/zig.vim'
|
|
--keybind help
|
|
use {
|
|
"folke/which-key.nvim",
|
|
config = function()
|
|
local wk = require("which-key")
|
|
wk.setup {
|
|
popup_mappings = {
|
|
scroll_down = "<C-j>",
|
|
scroll_up = "<C-k>",
|
|
},
|
|
window = {
|
|
border = "single",
|
|
},
|
|
}
|
|
end
|
|
}
|
|
|
|
-- () {} []...
|
|
use {
|
|
"windwp/nvim-autopairs",
|
|
--config = function() require("nvim-autopairs").setup {} end
|
|
}
|
|
|
|
-- <div></div>
|
|
use {"windwp/nvim-ts-autotag",
|
|
config = function ()
|
|
require('nvim-ts-autotag').setup()
|
|
end
|
|
}
|
|
|
|
--files
|
|
use {
|
|
'nvim-tree/nvim-tree.lua',
|
|
requires = {
|
|
'nvim-tree/nvim-web-devicons', -- optional, for file icons
|
|
},
|
|
}
|
|
|
|
--projects
|
|
use {
|
|
"ahmedkhalf/project.nvim",
|
|
config = function()
|
|
require("project_nvim").setup {}
|
|
end
|
|
}
|
|
|
|
-- idfk
|
|
use {
|
|
"SmiteshP/nvim-navic",
|
|
requires = "neovim/nvim-lspconfig"
|
|
}
|
|
|
|
--fzf
|
|
use {"akinsho/toggleterm.nvim", tag = '*'}
|
|
|
|
--idk
|
|
use {
|
|
'nacro90/numb.nvim',
|
|
config = function ()
|
|
require("numb").setup()
|
|
end
|
|
}
|
|
|
|
--idk
|
|
use 'nvim-lua/popup.nvim'
|
|
|
|
-- gc11j
|
|
use {
|
|
'numToStr/Comment.nvim',
|
|
config = function()
|
|
require('Comment').setup()
|
|
end
|
|
}
|
|
|
|
-- literaly the bottom of the screen
|
|
use {
|
|
'nvim-lualine/lualine.nvim',
|
|
requires = { 'kyazdani42/nvim-web-devicons', opt = true }
|
|
}
|
|
|
|
--broken
|
|
use {
|
|
"kevinhwang91/rnvimr",
|
|
cmd = "RnvimrToggle",
|
|
config = function()
|
|
vim.g.rnvimr_draw_border = 1
|
|
vim.g.rnvimr_pick_enable = 1
|
|
vim.g.rnvimr_bw_enable = 1
|
|
end,
|
|
}
|
|
|
|
--broken
|
|
use {'tzachar/cmp-tabnine', run='./install.sh', requires = 'hrsh7th/nvim-cmp'}
|
|
|
|
--idk
|
|
use {"ellisonleao/glow.nvim",
|
|
config = function ()
|
|
require("glow").setup()
|
|
end
|
|
}
|
|
|
|
--useless
|
|
use {
|
|
"karb94/neoscroll.nvim",
|
|
event = "WinScrolled",
|
|
config = function()
|
|
require('neoscroll').setup({
|
|
mappings = {'<C-u>', '<C-d>', '<C-b>', '<C-f>', '<C-y>', '<C-e>', 'zt', 'zz', 'zb'},
|
|
hide_cursor = true,
|
|
stop_eof = true,
|
|
use_local_scrolloff = false,
|
|
respect_scrolloff = false,
|
|
cursor_scrolls_alone = true,
|
|
easing_function = nil,
|
|
pre_hook = nil,
|
|
post_hook = nil,
|
|
})
|
|
end
|
|
}
|
|
|
|
--broken i think TODO somethink
|
|
use {
|
|
"folke/todo-comments.nvim",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("todo-comments").setup{}
|
|
end,
|
|
}
|
|
|
|
--regex i think
|
|
use {
|
|
"felipec/vim-sanegx",
|
|
event = "BufRead",
|
|
}
|
|
|
|
-- command mode help
|
|
use {
|
|
'gelguy/wilder.nvim',
|
|
config = function()
|
|
vim.cmd("call wilder#setup({'modes': [':', '/', '?']})")
|
|
vim.cmd("call wilder#set_option('renderer', wilder#popupmenu_renderer({'pumblend': 20}))")
|
|
vim.cmd("call wilder#set_option('renderer', wilder#popupmenu_renderer(wilder#popupmenu_border_theme({'highlights': {'border': 'Normal',},'border': 'rounded'})))")
|
|
end,
|
|
}
|
|
|
|
-- idk
|
|
use {"preservim/tagbar"}
|
|
-- emmet snippets
|
|
use {"mattn/emmet-vim"}
|
|
--use {"terryma/vim-multiple-cursors"}
|
|
-- must be (multicursor)
|
|
use {"mg979/vim-visual-multi"}
|
|
-- broken in scss and sass
|
|
use {"ap/vim-css-color"}
|
|
--idk
|
|
use {"tpope/vim-surround"}
|
|
--idk
|
|
use {'kyazdani42/nvim-web-devicons'}
|
|
--not used
|
|
use {
|
|
"ray-x/lsp_signature.nvim",
|
|
event = "BufRead",
|
|
config = function() require"lsp_signature".on_attach() end,
|
|
}
|
|
-- idk
|
|
use {
|
|
"phaazon/hop.nvim",
|
|
event = "BufRead",
|
|
config = function()
|
|
require("hop").setup()
|
|
vim.api.nvim_set_keymap("n", "s", ":HopChar2<cr>", { silent = true })
|
|
vim.api.nvim_set_keymap("n", "S", ":HopWord<cr>", { silent = true })
|
|
end,
|
|
}
|
|
-- idk
|
|
use {
|
|
"kevinhwang91/nvim-bqf",
|
|
event = { "BufRead", "BufNew" },
|
|
config = function()
|
|
require("bqf").setup({
|
|
auto_enable = true,
|
|
preview = {
|
|
win_height = 12,
|
|
win_vheight = 12,
|
|
delay_syntax = 80,
|
|
border_chars = { "┃", "┃", "━", "━", "┏", "┓", "┗", "┛", "█" },
|
|
},
|
|
func_map = {
|
|
vsplit = "",
|
|
ptogglemode = "z,",
|
|
stoggleup = "",
|
|
},
|
|
filter = {
|
|
fzf = {
|
|
action_for = { ["ctrl-s"] = "split" },
|
|
extra_opts = { "--bind", "ctrl-o:toggle-all", "--prompt", "> " },
|
|
},
|
|
},
|
|
})
|
|
end,
|
|
}
|
|
|
|
--dashboard
|
|
use {
|
|
'goolord/alpha-nvim',
|
|
config = function ()
|
|
require'alpha'.setup(require'alpha.themes.dashboard'.config)
|
|
end
|
|
}
|
|
use {'romgrk/barbar.nvim'}
|
|
--use {'akinsho/bufferline.nvim', tag = "v3.*",}
|
|
use {"jistr/vim-nerdtree-tabs"}
|
|
|
|
-- native fzf
|
|
use { 'nvim-telescope/telescope-fzf-native.nvim', run = 'make', cond = vim.fn.executable 'make' == 1 }
|
|
--idk
|
|
use 'andweeb/presence.nvim'
|
|
|
|
-- debugging
|
|
use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap"} }
|
|
use "nvim-telescope/telescope-dap.nvim"
|
|
--java
|
|
use 'mfussenegger/nvim-jdtls'
|
|
--cmake
|
|
use "cdelledonne/vim-cmake"
|
|
--themes
|
|
use {
|
|
"sainnhe/gruvbox-material",
|
|
as = "gruvbox-material",
|
|
config = function ()
|
|
vim.cmd("colorscheme gruvbox-material")
|
|
end
|
|
}
|
|
use {"shaunsingh/nord.nvim"}
|
|
use ({ 'projekt0n/github-nvim-theme' })
|
|
use 'EdenEast/nightfox.nvim'
|
|
use 'Everblush/nvim'
|
|
use 'olimorris/onedarkpro.nvim'
|
|
use 'rmehri01/onenord.nvim'
|
|
use 'luisiacc/gruvbox-baby'
|
|
use 'tiagovla/tokyodark.nvim'
|
|
use 'cpea2506/one_monokai.nvim'
|
|
use 'ramojus/mellifluous.nvim'
|
|
use 'yazeed1s/minimal.nvim'
|
|
use 'Mofiqul/adwaita.nvim'
|
|
use 'kvrohit/mellow.nvim'
|
|
use 'yazeed1s/oh-lucy.nvim'
|
|
use 'marko-cerovac/material.nvim'
|
|
use 'sainnhe/sonokai'
|
|
end)
|