yay
This commit is contained in:
commit
9d3d05066f
80 changed files with 7776 additions and 0 deletions
318
.backup/lua/config/packer.lua
Executable file
318
.backup/lua/config/packer.lua
Executable file
|
@ -0,0 +1,318 @@
|
|||
vim.cmd [[packadd packer.nvim]]
|
||||
return require("packer").startup(function(use)
|
||||
use "wbthomason/packer.nvim"
|
||||
|
||||
-- lsp
|
||||
use {
|
||||
"neovim/nvim-lspconfig",
|
||||
requires = {
|
||||
"williamboman/mason.nvim",
|
||||
"williamboman/mason-lspconfig.nvim",
|
||||
"j-hui/fidget.nvim",
|
||||
"folke/neodev.nvim",
|
||||
},
|
||||
}
|
||||
use {
|
||||
"SmiteshP/nvim-navic",
|
||||
requires = "neovim/nvim-lspconfig"
|
||||
}
|
||||
use {
|
||||
"ray-x/lsp_signature.nvim",
|
||||
event = "BufRead",
|
||||
config = function() require"lsp_signature".on_attach() end,
|
||||
}
|
||||
|
||||
-- cmp && snippets
|
||||
use {
|
||||
"hrsh7th/nvim-cmp",
|
||||
requires = {
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"L3MON4D3/LuaSnip",
|
||||
"saadparwaiz1/cmp_luasnip",
|
||||
"hrsh7th/cmp-buffer",
|
||||
"hrsh7th/cmp-path",
|
||||
"rafamadriz/friendly-snippets"
|
||||
},
|
||||
}
|
||||
use "github/copilot.vim"
|
||||
use {"mattn/emmet-vim"}
|
||||
-- use {'tzachar/cmp-tabnine', run='./install.sh', requires = 'hrsh7th/nvim-cmp'}
|
||||
use({
|
||||
"roobert/tailwindcss-colorizer-cmp.nvim",
|
||||
config = function()
|
||||
require("tailwindcss-colorizer-cmp").setup({
|
||||
color_square_width = 2,
|
||||
})
|
||||
end
|
||||
})
|
||||
|
||||
-- syntax highlighting
|
||||
use {
|
||||
"nvim-treesitter/nvim-treesitter",
|
||||
run = ":TSUpdate"
|
||||
}
|
||||
use {
|
||||
"nvim-treesitter/nvim-treesitter-textobjects",
|
||||
after = "nvim-treesitter",
|
||||
}
|
||||
use "nvim-treesitter/playground"
|
||||
|
||||
-- fzf Telescope
|
||||
use {
|
||||
"nvim-telescope/telescope.nvim",
|
||||
branch = "0.1.x",
|
||||
requires = {
|
||||
"nvim-lua/plenary.nvim"
|
||||
}
|
||||
}
|
||||
use {
|
||||
"nvim-telescope/telescope-fzf-native.nvim",
|
||||
run = "make",
|
||||
cond = vim.fn.executable "make" == 1
|
||||
}
|
||||
use "nvim-lua/popup.nvim"
|
||||
use {
|
||||
"ahmedkhalf/project.nvim",
|
||||
config = function()
|
||||
require("project_nvim").setup {}
|
||||
end,
|
||||
}
|
||||
|
||||
-- debugging
|
||||
use "mfussenegger/nvim-dap"
|
||||
use {
|
||||
"rcarriga/nvim-dap-ui",
|
||||
requires = {
|
||||
"mfussenegger/nvim-dap"
|
||||
},
|
||||
config = function()
|
||||
require("dapui").setup()
|
||||
end,
|
||||
}
|
||||
use "nvim-telescope/telescope-dap.nvim"
|
||||
|
||||
-- git
|
||||
use "tpope/vim-fugitive"
|
||||
use "tpope/vim-rhubarb"
|
||||
use "lewis6991/gitsigns.nvim"
|
||||
|
||||
-- misc
|
||||
use "editorconfig/editorconfig-vim"
|
||||
use "andweeb/presence.nvim"
|
||||
use {
|
||||
"nacro90/numb.nvim",
|
||||
config = function ()
|
||||
require("numb").setup()
|
||||
end
|
||||
}
|
||||
use {"ellisonleao/glow.nvim",
|
||||
config = function ()
|
||||
require("glow").setup()
|
||||
end
|
||||
}
|
||||
use {"tpope/vim-surround"}
|
||||
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,
|
||||
}
|
||||
use {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
requires = {
|
||||
"nvim-tree/nvim-web-devicons",
|
||||
},
|
||||
config = function()
|
||||
require("nvim-tree").setup({
|
||||
filters = {
|
||||
dotfiles = true,
|
||||
},
|
||||
})
|
||||
end,
|
||||
}
|
||||
|
||||
-- misc editing
|
||||
use {
|
||||
'phaazon/hop.nvim',
|
||||
branch = 'v2',
|
||||
config = function()
|
||||
require'hop'.setup {
|
||||
}
|
||||
end
|
||||
}
|
||||
use {
|
||||
"numToStr/Comment.nvim",
|
||||
config = function()
|
||||
require("Comment").setup()
|
||||
end
|
||||
}
|
||||
use "tpope/vim-sleuth"
|
||||
use "mbbill/undotree"
|
||||
use {
|
||||
"windwp/nvim-autopairs",
|
||||
--config = function() require("nvim-autopairs").setup {} end
|
||||
}
|
||||
use {"windwp/nvim-ts-autotag",
|
||||
config = function ()
|
||||
require("nvim-ts-autotag").setup()
|
||||
end
|
||||
}
|
||||
use {"mg979/vim-visual-multi"}
|
||||
|
||||
-- mics visuals
|
||||
use 'glepnir/dashboard-nvim'
|
||||
use {'romgrk/barbar.nvim', wants = 'nvim-web-devicons'}
|
||||
--use {"akinsho/bufferline.nvim", tag = "v3.*",}
|
||||
use {"jistr/vim-nerdtree-tabs"}
|
||||
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,
|
||||
}
|
||||
use {"kyazdani42/nvim-web-devicons"}
|
||||
use {"ap/vim-css-color"}
|
||||
use {
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
config = function()
|
||||
require('indent_blankline').setup {
|
||||
char = '┊',
|
||||
show_trailing_blankline_indent = false,
|
||||
filetype_exclude = {"dashboard"},
|
||||
}
|
||||
end,
|
||||
}
|
||||
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 "nvim-lualine/lualine.nvim"
|
||||
use {
|
||||
"akinsho/toggleterm.nvim",
|
||||
tag = "*",
|
||||
config = function()
|
||||
require("toggleterm").setup{
|
||||
direction = "float",
|
||||
float_opts = {
|
||||
border = "curved"
|
||||
},
|
||||
}
|
||||
end,
|
||||
}
|
||||
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
|
||||
}
|
||||
use {
|
||||
"folke/todo-comments.nvim",
|
||||
event = "BufRead",
|
||||
config = function()
|
||||
require("todo-comments").setup{}
|
||||
end,
|
||||
}
|
||||
use {
|
||||
"felipec/vim-sanegx",
|
||||
event = "BufRead",
|
||||
}
|
||||
use {
|
||||
"gelguy/wilder.nvim",
|
||||
config = function()
|
||||
vim.cmd('call wilder#setup({"modes": [":", "/", "?"]})')
|
||||
vim.cmd('call wilder#set_option("renderer", wilder#popupmenu_renderer({"highlighter": wilder#basic_highlighter(), "left": [ " ", wilder#popupmenu_devicons(), ], "right": [ " ", wilder#popupmenu_scrollbar(), ], "pumblend": 20}))')
|
||||
vim.cmd('call wilder#set_option("renderer", wilder#popupmenu_renderer(wilder#popupmenu_border_theme({"highlighter": wilder#basic_highlighter(), "min_width": "100%", "min_height": "50%", "reverse": 0, "highlights": {"border": "Normal",},"border": "rounded"})))')
|
||||
end,
|
||||
}
|
||||
|
||||
-- lenguage specific
|
||||
-- rust
|
||||
use {"racer-rust/vim-racer",
|
||||
config = function ()
|
||||
vim.cmd [[ let g:racer_cmd = "/usr/bin/racer"]]
|
||||
end
|
||||
}
|
||||
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
|
||||
use "ziglang/zig.vim"
|
||||
|
||||
-- java
|
||||
use "mfussenegger/nvim-jdtls"
|
||||
|
||||
-- c && c++ && cmake
|
||||
use "cdelledonne/vim-cmake"
|
||||
|
||||
-- themes
|
||||
use "sainnhe/gruvbox-material"
|
||||
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 "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)
|
Loading…
Add table
Add a link
Reference in a new issue