2022-01-18 01:25:46 -05:00
|
|
|
|
local bootstrap = require('bootstrap')
|
|
|
|
|
|
|
|
|
|
local function import(name)
|
2022-11-08 20:32:39 -05:00
|
|
|
|
return ([[require '%s']]):format(name)
|
2022-01-18 01:25:46 -05:00
|
|
|
|
end
|
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
return require('packer').startup({
|
|
|
|
|
function(use)
|
|
|
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
|
|
2024-06-24 17:24:25 -04:00
|
|
|
|
use 'RRethy/base16-nvim'
|
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'vim-airline/vim-airline',
|
|
|
|
|
requires = {
|
|
|
|
|
'ryanoasis/vim-devicons',
|
|
|
|
|
}
|
2022-11-08 20:32:39 -05:00
|
|
|
|
}
|
2022-01-18 01:25:46 -05:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'mustache/vim-mustache-handlebars'
|
|
|
|
|
}
|
2022-01-18 01:25:46 -05:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'nvim-treesitter/nvim-treesitter',
|
|
|
|
|
run = ':TSUpdate'
|
|
|
|
|
}
|
2022-10-29 17:27:30 -04:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'petRUShka/vim-sage'
|
|
|
|
|
}
|
2022-06-10 09:34:44 -04:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'evanleck/vim-svelte'
|
|
|
|
|
}
|
2022-05-13 18:15:19 -04:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'wuelnerdotexe/vim-astro'
|
|
|
|
|
}
|
2022-11-21 00:05:55 -05:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'tpope/vim-fugitive',
|
|
|
|
|
config = function()
|
|
|
|
|
local map = vim.api.nvim_set_keymap
|
|
|
|
|
map('n', '<Leader>g', '<Cmd>Git<CR>', { noremap = true })
|
|
|
|
|
end,
|
|
|
|
|
}
|
2022-01-18 01:25:46 -05:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'tpope/vim-surround',
|
|
|
|
|
}
|
2022-09-26 11:00:51 -04:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'tpope/vim-repeat',
|
|
|
|
|
}
|
2022-09-26 11:00:51 -04:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'lewis6991/gitsigns.nvim',
|
|
|
|
|
requires = {
|
|
|
|
|
'nvim-lua/plenary.nvim'
|
|
|
|
|
},
|
|
|
|
|
config = function()
|
|
|
|
|
require('gitsigns').setup {
|
|
|
|
|
signs = {
|
|
|
|
|
add = {
|
|
|
|
|
text = '│',
|
|
|
|
|
},
|
|
|
|
|
change = {
|
|
|
|
|
text = '│',
|
|
|
|
|
},
|
|
|
|
|
delete = {
|
|
|
|
|
text = '_',
|
|
|
|
|
},
|
|
|
|
|
topdelete = {
|
|
|
|
|
text = '‾',
|
|
|
|
|
},
|
|
|
|
|
changedelete = {
|
|
|
|
|
text = '~',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
}
|
2022-01-18 01:25:46 -05:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'akinsho/flutter-tools.nvim',
|
|
|
|
|
requires = {
|
|
|
|
|
'nvim-lua/plenary.nvim'
|
|
|
|
|
},
|
|
|
|
|
config = function()
|
|
|
|
|
require('flutter-tools').setup {
|
|
|
|
|
lsp = {
|
|
|
|
|
color = {
|
|
|
|
|
enabled = false
|
|
|
|
|
}
|
2022-03-26 13:29:14 -04:00
|
|
|
|
}
|
|
|
|
|
}
|
2023-09-25 14:10:12 -04:00
|
|
|
|
end
|
|
|
|
|
}
|
2022-03-26 13:29:14 -04:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'numToStr/Comment.nvim',
|
|
|
|
|
config = function()
|
|
|
|
|
local map = vim.api.nvim_set_keymap
|
|
|
|
|
require('Comment').setup({})
|
|
|
|
|
map('n', '<C-_>',
|
|
|
|
|
'<Cmd>lua require("Comment.api").toggle_linewise_op(vim.fn.visualmode())<CR>',
|
|
|
|
|
{ noremap = true, silent = true })
|
|
|
|
|
end
|
|
|
|
|
}
|
2022-11-08 20:32:39 -05:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'nvim-telescope/telescope.nvim',
|
|
|
|
|
requires = {
|
|
|
|
|
'nvim-lua/plenary.nvim',
|
|
|
|
|
{
|
|
|
|
|
'nvim-telescope/telescope-fzf-native.nvim',
|
|
|
|
|
run = 'make',
|
|
|
|
|
},
|
|
|
|
|
'nvim-telescope/telescope-symbols.nvim',
|
2022-11-08 20:32:39 -05:00
|
|
|
|
},
|
2023-09-25 14:10:12 -04:00
|
|
|
|
config = import('tel'),
|
|
|
|
|
}
|
2022-11-08 20:32:39 -05:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'stevearc/dressing.nvim',
|
|
|
|
|
config = function()
|
|
|
|
|
require('dressing').setup({
|
|
|
|
|
input = {
|
|
|
|
|
default_prompt = '❯',
|
|
|
|
|
win_options = {
|
|
|
|
|
winhighlight = 'NormalFloat:Normal',
|
|
|
|
|
},
|
2022-12-12 12:30:43 -05:00
|
|
|
|
},
|
2023-09-25 14:10:12 -04:00
|
|
|
|
})
|
|
|
|
|
vim.cmd [[highlight link FloatTitle NonText]]
|
|
|
|
|
vim.cmd [[highlight link DressingInputText Normal]]
|
|
|
|
|
end,
|
|
|
|
|
}
|
2022-11-08 20:32:39 -05:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'antoinemadec/FixCursorHold.nvim',
|
|
|
|
|
config = function()
|
|
|
|
|
vim.g.cursorhold_updatetime = 500
|
|
|
|
|
end,
|
|
|
|
|
}
|
2022-11-08 20:32:39 -05:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'sirver/ultisnips',
|
|
|
|
|
ft = { 'latex', 'plaintex', 'tex' },
|
|
|
|
|
config = function()
|
|
|
|
|
vim.g.UltiSnipsExpandTrigger = '<tab>'
|
|
|
|
|
vim.g.UltiSnipsJumpForwardTrigger = '<c-h>'
|
|
|
|
|
vim.g.UltiSnipsJumpBackwardTrigger = '<c-b>'
|
|
|
|
|
end
|
|
|
|
|
}
|
2022-11-08 20:32:39 -05:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'neovim/nvim-lspconfig',
|
|
|
|
|
-- commit = "607ff48b970b89c3e4e3825b88d9cfd05b7aaea5",
|
|
|
|
|
requires = {
|
|
|
|
|
'nvim-lua/lsp-status.nvim',
|
|
|
|
|
{
|
|
|
|
|
'ms-jpq/coq.thirdparty',
|
2022-11-08 20:32:39 -05:00
|
|
|
|
},
|
2023-09-25 14:10:12 -04:00
|
|
|
|
{
|
|
|
|
|
'ms-jpq/coq_nvim',
|
|
|
|
|
run = ':COQdeps',
|
|
|
|
|
requires = {
|
|
|
|
|
'ms-jpq/coq.artifacts',
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
'jose-elias-alvarez/null-ls.nvim',
|
|
|
|
|
requires = {
|
|
|
|
|
'nvim-lua/plenary.nvim',
|
|
|
|
|
},
|
2022-11-08 20:32:39 -05:00
|
|
|
|
},
|
|
|
|
|
},
|
2023-09-25 14:10:12 -04:00
|
|
|
|
config = import('lsp'),
|
|
|
|
|
}
|
2022-11-08 20:32:39 -05:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'lervag/vimtex',
|
|
|
|
|
config = function()
|
|
|
|
|
vim.g.vimtex_view_general_viewer = 'zathura'
|
|
|
|
|
vim.g.vimtex_compiler_method = "latexmk"
|
|
|
|
|
-- vim.g.vimtex_view_general_options = = '-x nvim -n -c "Vimtex'
|
|
|
|
|
-- 'file:@pdf\\#src:@line@tex'
|
|
|
|
|
-- vim.g.vimtex_quickfix_enabled = 0
|
|
|
|
|
-- vim.g.Tex_GotoError = 0
|
|
|
|
|
-- vim.g.Tex_ShowErrorContext = 0
|
|
|
|
|
end,
|
|
|
|
|
}
|
2022-02-15 16:08:17 -05:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
use {
|
|
|
|
|
'iamcco/markdown-preview.nvim',
|
|
|
|
|
commit = "02cc3874738bc0f86e4b91f09b8a0ac88aef8e96",
|
|
|
|
|
run = "cd app && npm install",
|
|
|
|
|
setup = function() vim.g.mkdp_filetypes = { "markdown" } end, ft = { "markdown" },
|
|
|
|
|
config = function()
|
|
|
|
|
local map = vim.api.nvim_set_keymap
|
|
|
|
|
map('n', '<C-m>', '<Plug>MarkdownPreviewToggle', {})
|
|
|
|
|
map('n', '<Leader>m', '<Plug>MarkdownPreviewToggle', {})
|
|
|
|
|
vim.g.mkdp_markdown_css = os.getenv("HOME") .. "/.config/nvim/lua/markdownStyle.css"
|
|
|
|
|
vim.g.mkdp_highlight_css = os.getenv("HOME") .. "/.cache/wal/colors.css"
|
|
|
|
|
end
|
|
|
|
|
}
|
2022-03-26 13:29:14 -04:00
|
|
|
|
|
2023-09-25 14:10:12 -04:00
|
|
|
|
if bootstrap.is_bootstrap then
|
|
|
|
|
require('packer').sync()
|
|
|
|
|
end
|
|
|
|
|
end,
|
2022-11-08 20:32:39 -05:00
|
|
|
|
config = {
|
|
|
|
|
compile_path = require('packer.util').join_paths(vim.fn.stdpath('data'), 'site', 'plugin', 'packer_compiled.lua'),
|
2023-09-25 14:10:12 -04:00
|
|
|
|
}
|
|
|
|
|
})
|