mirror of
https://github.com/gyoder/dots.git
synced 2026-02-27 17:03:45 +00:00
199 lines
4.3 KiB
Lua
199 lines
4.3 KiB
Lua
vim.cmd [[packadd packer.nvim]]
|
|
|
|
local ensure_packer = function()
|
|
local fn = vim.fn
|
|
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
|
|
if fn.empty(fn.glob(install_path)) > 0 then
|
|
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
|
|
vim.cmd [[packadd packer.nvim]]
|
|
return true
|
|
end
|
|
return false
|
|
end
|
|
|
|
local packer_bootstrap = ensure_packer()
|
|
|
|
return require('packer').startup(function(use)
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
-- use "neovim/nvim-lspconfig"
|
|
|
|
use {
|
|
'maxmx03/solarized.nvim',
|
|
config = function()
|
|
vim.o.background = 'dark'
|
|
---@type solarized
|
|
local solarized = require('solarized')
|
|
vim.o.termguicolors = true
|
|
vim.o.background = 'dark'
|
|
solarized.setup({})
|
|
-- vim.cmd.colorscheme 'solarized'
|
|
end
|
|
}
|
|
use {
|
|
'nvim-telescope/telescope.nvim', tag = '0.1.x',
|
|
requires = { {'nvim-lua/plenary.nvim'} }
|
|
}
|
|
|
|
use {
|
|
'nvim-treesitter/nvim-treesitter',
|
|
config = function() require("plugins/ts") end
|
|
}
|
|
|
|
use 'mbbill/undotree'
|
|
use 'mfussenegger/nvim-lint'
|
|
use {
|
|
'nvim-lualine/lualine.nvim',
|
|
requires = { 'nvim-tree/nvim-web-devicons', opt = true },
|
|
config = function() require('plugins/lualine-config') end
|
|
}
|
|
-- use {
|
|
-- 'm4xshen/autoclose.nvim',
|
|
-- config = function() require("autoclose").setup() end
|
|
-- }
|
|
--
|
|
use {
|
|
"windwp/nvim-autopairs",
|
|
event = "InsertEnter",
|
|
config = function()
|
|
require("nvim-autopairs").setup {}
|
|
end
|
|
}
|
|
|
|
use {
|
|
'CRAG666/betterTerm.nvim',
|
|
config = function() require('betterTerm').setup() end
|
|
}
|
|
|
|
use {
|
|
'anurag3301/nvim-platformio.lua',
|
|
requires = {
|
|
{'akinsho/nvim-toggleterm.lua'},
|
|
{'nvim-telescope/telescope.nvim'},
|
|
{'nvim-lua/plenary.nvim'},
|
|
},
|
|
config = function()
|
|
if not vim.g.is_purdue then
|
|
require('platformio').setup({
|
|
lsp = "clangd" --default: ccls, other option: clangd
|
|
-- If you pick clangd, it also creates compile_commands.json
|
|
})
|
|
end
|
|
end
|
|
}
|
|
|
|
use {
|
|
"chentoast/marks.nvim",
|
|
config = function() require('plugins/marks-config') end
|
|
}
|
|
|
|
use {
|
|
"nvim-neo-tree/neo-tree.nvim",
|
|
branch = "v3.x",
|
|
requires = {
|
|
"nvim-lua/plenary.nvim",
|
|
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
|
|
"MunifTanjim/nui.nvim",
|
|
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
|
|
}
|
|
}
|
|
|
|
|
|
use { "nvim-tree/nvim-web-devicons" }
|
|
use { "MunifTanjim/nui.nvim" }
|
|
|
|
use { 'rafamadriz/friendly-snippets' }
|
|
use {
|
|
'saghen/blink.cmp',
|
|
run = 'cargo build --release',
|
|
config = function()
|
|
require("plugins/blink_config")
|
|
end
|
|
}
|
|
|
|
use {
|
|
'f-person/git-blame.nvim',
|
|
config = function ()
|
|
require("gitblame").setup {
|
|
gitblame_delay = 1
|
|
}
|
|
end
|
|
}
|
|
|
|
use {
|
|
'mrcjkb/rustaceanvim',
|
|
config = function() require('plugins/rust-config') end
|
|
}
|
|
|
|
use {
|
|
"NeogitOrg/neogit",
|
|
config = function ()
|
|
require("neogit").setup {}
|
|
end
|
|
}
|
|
|
|
use "mfussenegger/nvim-dap"
|
|
use 'theHamsta/nvim-dap-virtual-text'
|
|
use { "rcarriga/nvim-dap-ui", requires = {"mfussenegger/nvim-dap", "nvim-neotest/nvim-nio"} }
|
|
|
|
use { "geigerzaehler/tree-sitter-jinja2" }
|
|
|
|
use "echasnovski/mini.base16"
|
|
|
|
use 'rktjmp/lush.nvim'
|
|
|
|
use {
|
|
"rose-pine/neovim",
|
|
as = "rose-pine",
|
|
config = function()
|
|
require("rose-pine").setup({
|
|
variant = "moon"
|
|
})
|
|
vim.cmd("colorscheme rose-pine")
|
|
end
|
|
}
|
|
|
|
use {
|
|
'chomosuke/typst-preview.nvim',
|
|
tag = 'v1.*',
|
|
config = function()
|
|
require 'typst-preview'.setup {}
|
|
end,
|
|
}
|
|
|
|
-- use "folke/which-key.nvim"
|
|
|
|
use({
|
|
"andrewferrier/wrapping.nvim",
|
|
config = function()
|
|
require("wrapping").setup()
|
|
end,
|
|
})
|
|
|
|
use({
|
|
"iamcco/markdown-preview.nvim",
|
|
run = function() vim.fn["mkdp#util#install"]() end,
|
|
})
|
|
|
|
|
|
use {
|
|
'preservim/vim-pencil',
|
|
config = function()
|
|
vim.cmd([[
|
|
augroup PencilSetup
|
|
autocmd!
|
|
autocmd FileType markdown,text,tex,gitcommit setlocal formatoptions+=t
|
|
autocmd FileType markdown,text,tex,gitcommit PencilHard
|
|
augroup END augroup END
|
|
]])
|
|
end
|
|
}
|
|
|
|
|
|
------------------------
|
|
|
|
if packer_bootstrap then
|
|
require('packer').sync()
|
|
end
|
|
end)
|
|
|