134 lines
3.1 KiB
Lua
134 lines
3.1 KiB
Lua
require("packer").startup({{
|
|
"wbthomason/packer.nvim",
|
|
|
|
{
|
|
"lukas-reineke/indent-blankline.nvim",
|
|
branch = "lua",
|
|
},
|
|
|
|
{
|
|
"olimorris/onedark.nvim",
|
|
requires = "rktjmp/lush.nvim",
|
|
},
|
|
|
|
{
|
|
"nvim-treesitter/nvim-treesitter",
|
|
run = ":TSUpdate",
|
|
config = function()
|
|
require("nvim-treesitter.configs").setup({
|
|
ensure_installed = "maintained",
|
|
autopairs = {
|
|
enable = true,
|
|
},
|
|
highlight = {
|
|
enable = true,
|
|
},
|
|
incremental_selection = {
|
|
enable = true,
|
|
keymaps = {
|
|
init_selection = "gnn",
|
|
node_incremental = "grn",
|
|
scope_incremental = "grc",
|
|
node_decremental = "grm",
|
|
},
|
|
},
|
|
indent = {
|
|
enable = true,
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
|
|
"yamatsum/nvim-cursorline",
|
|
|
|
{
|
|
"edluffy/specs.nvim",
|
|
config = function()
|
|
require("specs").setup({
|
|
show_jumps = true,
|
|
min_jump = 30,
|
|
popup = {
|
|
delay_ms = 0,
|
|
inc_ms = 10,
|
|
blend = 10,
|
|
width = 30,
|
|
winhl = "PMenu",
|
|
fader = require("specs").pulse_fader,
|
|
resizer = require("specs").shrink_resizer,
|
|
},
|
|
ignore_filetypes = {},
|
|
ignore_buftypes = {
|
|
nofile = true,
|
|
},
|
|
})
|
|
end,
|
|
},
|
|
|
|
{
|
|
"norcalli/nvim-colorizer.lua",
|
|
config = function()
|
|
require("colorizer").setup()
|
|
end,
|
|
},
|
|
|
|
{
|
|
"windwp/nvim-autopairs",
|
|
config = function()
|
|
require("nvim-autopairs").setup({
|
|
check_ts = true,
|
|
})
|
|
end,
|
|
},
|
|
|
|
"vim-syntastic/syntastic",
|
|
|
|
"rust-lang/rust.vim",
|
|
|
|
{
|
|
"psf/black",
|
|
run = ":BlackUpgrade",
|
|
},
|
|
|
|
{
|
|
"Vimjas/vim-python-pep8-indent",
|
|
ft = "python",
|
|
},
|
|
|
|
"andweeb/presence.nvim",
|
|
}})
|
|
|
|
-- Setting plugin-specific variables --
|
|
|
|
-- onedark.nvim
|
|
vim.g.onedark_override = {
|
|
-- personal color scheme
|
|
red = "#e6b3b3",
|
|
green = "#bde6b3",
|
|
yellow = "#e6e0b3",
|
|
blue = "#b3c7e6",
|
|
purple = "#ccb3e6",
|
|
cyan = "#b3e6d6",
|
|
white = "#ccc",
|
|
black = "#141414",
|
|
gray = "#bdbdbd",
|
|
comment_gray = "#a3a3a3",
|
|
selection_gray = "#333",
|
|
indentline_gray = "#a3a3a3",
|
|
colorcolumn_gray = "#242424",
|
|
}
|
|
vim.o.background = "dark"
|
|
|
|
-- lush.nvim
|
|
vim.g.colors_name = "onedark_nvim"
|
|
|
|
-- syntastic
|
|
vim.g.syntastic_always_populate_loc_list = 1
|
|
vim.g.syntastic_auto_loc_list = 1
|
|
vim.g.syntastic_check_on_open = 1
|
|
vim.g.syntastic_check_on_wq = 1
|
|
|
|
-- rust.vim
|
|
vim.g.rustfmt_autosave = 1
|
|
|
|
-- vim-python-pep8-indent
|
|
vim.g.python_pep8_indent_multiline_string = -2
|