-
Notifications
You must be signed in to change notification settings - Fork 0
/
init.lua
126 lines (93 loc) · 2.81 KB
/
init.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
-- Based on https://github.com/Olical/dotfiles
-- Optimize Lua loading
vim.loader.enable()
local cmd = vim.api.nvim_command
local fn = vim.fn
local fmt = string.format
if not vim.g.vscode then
local pack_path = fn.stdpath("data") .. "/site/pack"
function ensure(user, repo)
local install_path = fmt("%s/packer/start/%s", pack_path, repo)
if fn.empty(fn.glob(install_path)) > 0 then
cmd(fmt("!git clone https://github.com/%s/%s %s", user, repo, install_path))
cmd(fmt("packadd %s", repo))
end
end
ensure("wbthomason", "packer.nvim")
require("packer").startup(function ()
-- Basic Packer/Fennel/Lua setup
use "wbthomason/packer.nvim"
use "Olical/aniseed"
use "Olical/nvim-local-fennel"
use "tsbohc/zest.nvim"
use "nvim-lua/plenary.nvim"
-- Ergonomics
use "godlygeek/tabular"
use "jeetsukumaran/vim-indentwise"
use "justinmk/vim-sneak"
use "tpope/vim-endwise"
use "tpope/vim-repeat"
use "tpope/vim-speeddating"
use "tpope/vim-surround"
use "tpope/vim-unimpaired"
use "kana/vim-textobj-user"
use "glts/vim-textobj-comment"
use "preservim/nerdcommenter"
use "tpope/vim-fugitive"
use "tpope/vim-rhubarb"
use "airblade/vim-gitgutter"
use "rf-/vim-bclose"
use "AndrewRadev/splitjoin.vim"
use "simnalamburt/vim-mundo"
-- Snippets
use "hrsh7th/vim-vsnip"
use {
"zbirenbaum/copilot.lua",
cmd = "Copilot",
event = "InsertEnter",
config = function()
require("copilot").setup({})
end
}
use {
"CopilotC-Nvim/CopilotChat.nvim",
branch = "canary",
config = function()
require("CopilotChat").setup({})
end
}
-- Language support
vim.g["polyglot_disabled"] = {"typescript"}
use "sheerun/vim-polyglot"
use "rf-/yats.vim"
use "nvim-treesitter/nvim-treesitter"
use "neovim/nvim-lspconfig"
use "nvimtools/none-ls.nvim"
use { "folke/trouble.nvim", tag = "v2.10.0" }
use "seblj/nvim-echo-diagnostics"
use "hrsh7th/cmp-nvim-lsp"
use "hrsh7th/cmp-buffer"
use "hrsh7th/cmp-path"
use "hrsh7th/cmp-cmdline"
use "hrsh7th/cmp-vsnip"
use "hrsh7th/nvim-cmp"
use "vale1410/vim-minizinc"
use "nelstrom/vim-textobj-rubyblock"
use { "iamcco/markdown-preview.nvim", run = "cd app && yarn install" }
-- Navigation
use "nvim-telescope/telescope.nvim"
use "nvim-telescope/telescope-fzy-native.nvim"
use "nvim-telescope/telescope-ui-select.nvim"
use "preservim/nerdtree"
-- Color
use "rf-/edge"
end)
-- Fix Packer or whatever breaking load path
package.path = vim.fs.normalize("~") .. "/.config/nvim/lua/?.lua," .. package.path
if not vim.env.PACKER_SYNC then
vim.g["aniseed#env"] = {
module = "local.init",
compile = true
}
end
end