2021-03-31 22:39:21 -04:00
|
|
|
local execute = vim.api.nvim_command
|
|
|
|
|
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
|
2021-06-30 21:57:07 -05:00
|
|
|
fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', install_path})
|
2021-03-31 22:39:21 -04:00
|
|
|
execute 'packadd packer.nvim'
|
|
|
|
|
end
|
|
|
|
|
|
|
|
|
|
return require('packer').startup(function(use)
|
|
|
|
|
-- Packer can manage itself as an optional plugin
|
|
|
|
|
use 'wbthomason/packer.nvim'
|
|
|
|
|
|
|
|
|
|
-- LSP
|
|
|
|
|
use 'neovim/nvim-lspconfig'
|
2022-12-12 15:56:52 -08:00
|
|
|
use({
|
|
|
|
|
"glepnir/lspsaga.nvim",
|
|
|
|
|
branch = "main",
|
|
|
|
|
config = function()
|
|
|
|
|
local saga = require("lspsaga")
|
|
|
|
|
|
|
|
|
|
saga.init_lsp_saga({
|
|
|
|
|
-- your configuration
|
|
|
|
|
})
|
|
|
|
|
end,
|
|
|
|
|
})
|
2021-06-21 19:57:46 -05:00
|
|
|
use 'kabouzeid/nvim-lspinstall'
|
2021-03-31 22:39:21 -04:00
|
|
|
-- Autocomplete
|
|
|
|
|
use 'hrsh7th/nvim-compe'
|
2021-06-30 21:57:07 -05:00
|
|
|
-- Function signatures
|
|
|
|
|
use "ray-x/lsp_signature.nvim"
|
2021-06-21 19:57:46 -05:00
|
|
|
|
2021-03-31 22:39:21 -04:00
|
|
|
-- Theme
|
|
|
|
|
use 'drewtempelmeyer/palenight.vim'
|
|
|
|
|
use 'kyazdani42/nvim-web-devicons'
|
|
|
|
|
|
|
|
|
|
-- Syntax
|
|
|
|
|
use 'sheerun/vim-polyglot'
|
2022-01-18 19:31:38 -08:00
|
|
|
use {
|
|
|
|
|
'prettier/vim-prettier',
|
|
|
|
|
run = "yarn install",
|
|
|
|
|
ft = {"javascript", "typescript", "json"}
|
|
|
|
|
}
|
2021-03-31 22:42:00 -04:00
|
|
|
use {'styled-components/vim-styled-components', branch = "main"}
|
2022-01-09 13:58:55 -08:00
|
|
|
use 'dominikduda/vim_current_word'
|
2022-01-18 19:31:38 -08:00
|
|
|
use {
|
|
|
|
|
'lukas-reineke/indent-blankline.nvim',
|
|
|
|
|
ft = {'yaml', 'yml', 'helm'},
|
|
|
|
|
config = function()
|
|
|
|
|
vim.opt.list = true
|
|
|
|
|
vim.opt.listchars:append("space:⋅")
|
|
|
|
|
vim.opt.listchars:append("eol:↴")
|
|
|
|
|
|
|
|
|
|
require("indent_blankline").setup {
|
|
|
|
|
show_end_of_line = true,
|
|
|
|
|
space_char_blankline = " ",
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
}
|
2021-06-21 19:57:46 -05:00
|
|
|
|
|
|
|
|
use 'airblade/vim-rooter'
|
2022-02-21 14:35:14 -08:00
|
|
|
|
2022-12-12 23:51:00 +00:00
|
|
|
-- Find tools.
|
2022-02-21 14:35:14 -08:00
|
|
|
use { "nvim-telescope/telescope-file-browser.nvim" }
|
2022-12-12 15:56:52 -08:00
|
|
|
use {'nvim-telescope/telescope-ui-select.nvim' }
|
2021-03-31 22:39:21 -04:00
|
|
|
use {
|
|
|
|
|
'nvim-telescope/telescope.nvim',
|
2022-02-21 14:35:14 -08:00
|
|
|
requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}},
|
2021-03-31 22:39:21 -04:00
|
|
|
}
|
2022-12-12 23:51:00 +00:00
|
|
|
use { "junegunn/fzf" }
|
|
|
|
|
use { "junegunn/fzf.vim" }
|
2021-03-31 22:39:21 -04:00
|
|
|
|
2022-02-21 14:35:14 -08:00
|
|
|
|
2022-01-14 19:19:10 -08:00
|
|
|
-- Diagnostics
|
|
|
|
|
-- Lua
|
|
|
|
|
use {
|
|
|
|
|
"folke/trouble.nvim",
|
|
|
|
|
requires = "kyazdani42/nvim-web-devicons",
|
|
|
|
|
config = function()
|
|
|
|
|
require("trouble").setup {
|
|
|
|
|
-- your configuration comes here
|
|
|
|
|
-- or leave it empty to use the default settings
|
|
|
|
|
}
|
|
|
|
|
end
|
|
|
|
|
}
|
2021-06-30 21:57:07 -05:00
|
|
|
|
2021-06-21 19:57:46 -05:00
|
|
|
-- Git symobls.
|
|
|
|
|
use {
|
2022-12-12 23:51:00 +00:00
|
|
|
'lewis6991/gitsigns.nvim',
|
|
|
|
|
tag = 'release',
|
2021-06-21 19:57:46 -05:00
|
|
|
config = function()
|
|
|
|
|
require('gitsigns').setup()
|
|
|
|
|
end
|
|
|
|
|
}
|
2021-06-30 21:57:07 -05:00
|
|
|
|
2021-03-31 22:39:21 -04:00
|
|
|
use 'jiangmiao/auto-pairs'
|
|
|
|
|
use 'itchyny/lightline.vim'
|
2022-01-09 13:58:55 -08:00
|
|
|
use 'itchyny/vim-gitbranch'
|
2021-03-31 22:39:21 -04:00
|
|
|
|
2021-06-30 21:57:07 -05:00
|
|
|
-- Golang
|
|
|
|
|
use 'fatih/vim-go'
|
|
|
|
|
|
2022-12-12 15:56:52 -08:00
|
|
|
-- Flutter/Dart
|
|
|
|
|
use {'akinsho/flutter-tools.nvim', requires = 'nvim-lua/plenary.nvim'}
|
|
|
|
|
|
2021-07-14 14:09:59 -05:00
|
|
|
-- Pyhton
|
2021-12-01 21:26:29 -08:00
|
|
|
-- use 'a-vrma/black-nvim'
|
|
|
|
|
use {
|
|
|
|
|
'psf/black', branch = "stable"
|
|
|
|
|
}
|
2022-12-12 23:51:00 +00:00
|
|
|
|
|
|
|
|
-- Ocaml
|
|
|
|
|
use "lukas-reineke/lsp-format.nvim"
|
2021-07-14 14:09:59 -05:00
|
|
|
|
|
|
|
|
-- Comments
|
|
|
|
|
use 'tpope/vim-commentary'
|
|
|
|
|
|
2022-01-09 13:58:55 -08:00
|
|
|
-- Smooth scrolling
|
|
|
|
|
use 'psliwka/vim-smoothie'
|
|
|
|
|
|
2021-03-31 22:39:21 -04:00
|
|
|
end)
|