-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
167 lines (149 loc) · 3.69 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
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
---@diagnostic disable: missing-fields
vim.loader.enable()
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
--------------------- PACKEGE MANAGER INSSTALL ---------------------
local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim'
if not vim.loop.fs_stat(lazypath) then
vim.fn.system {
'git',
'clone',
'--filter=blob:none',
'https://github.com/folke/lazy.nvim.git',
'--branch=stable',
lazypath,
}
end
vim.opt.rtp:prepend(lazypath)
--[[
-- TODO:
-- debugger setup
--]]
--------------------- PACKEGES ---------------------
require('lazy').setup({
'tpope/vim-fugitive',
'tpope/vim-rhubarb',
'tpope/vim-sleuth',
{
-- LSP Configuration & Plugins
'neovim/nvim-lspconfig',
dependencies = {
'williamboman/mason.nvim',
'williamboman/mason-lspconfig.nvim',
'VonHeikemen/lsp-zero.nvim',
{ 'j-hui/fidget.nvim', opts = {} },
'folke/neodev.nvim',
},
},
{
'benknoble/vim-racket',
ft = 'racket'
},
{
"kylechui/nvim-surround",
version = "*",
event = "VeryLazy",
},
{
'ggandor/leap.nvim',
dependencies = { 'tpope/vim-repeat' }
},
{
'akinsho/flutter-tools.nvim',
lazy = false,
dependencies = {
'stevearc/dressing.nvim',
'nvim-lua/plenary.nvim',
}
},
'mfussenegger/nvim-dap',
{
'rcarriga/nvim-dap-ui',
dependencies = { "nvim-neotest/nvim-nio" },
},
'onsails/lspkind.nvim',
{
-- Autocompletion
'hrsh7th/nvim-cmp',
dependencies = { 'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-path', 'saadparwaiz1/cmp_luasnip', 'L3MON4D3/LuaSnip' },
},
"huynle/ogpt.nvim",
-- Useful plugin to show you pending keybinds.
{ 'folke/which-key.nvim', opts = {} },
{
-- Adds git releated signs to the gutter, as well as utilities for managing changes
'lewis6991/gitsigns.nvim',
opts = {
signs = {
add = { text = '+' },
change = { text = '~' },
delete = { text = '_' },
topdelete = { text = '‾' },
changedelete = { text = '~' },
},
},
},
"ray-x/go.nvim",
{
-- Theme inspired by Atom
'catppuccin/nvim',
priority = 1000,
config = function()
require('catppuccin').setup {
flavour = 'macchiato',
styles = {
comments = { 'italic' },
functions = { 'bold' },
keywords = { 'bold' },
variables = { 'italic' },
types = { 'bold' },
},
}
vim.cmd.colorscheme 'catppuccin-macchiato'
end,
},
{
'lukas-reineke/indent-blankline.nvim',
main = 'ibl',
},
{ 'numToStr/Comment.nvim', opts = {} },
{ 'nvim-telescope/telescope.nvim', version = '*', dependencies = { 'nvim-lua/plenary.nvim' } },
'nvim-tree/nvim-web-devicons',
'nvim-tree/nvim-tree.lua',
'romgrk/barbar.nvim',
'windwp/nvim-autopairs',
'akinsho/toggleterm.nvim',
'folke/todo-comments.nvim',
{
'startup-nvim/startup.nvim',
dependencies = { 'nvim-lua/plenary.nvim' },
},
{
-- Highlight, edit, and navigate code
'nvim-treesitter/nvim-treesitter',
dependencies = {
'nvim-treesitter/nvim-treesitter-textobjects',
},
config = function()
pcall(require('nvim-treesitter.install').update { with_sync = true })
end,
},
}, {})
require 'nvide'
require '_ibl'
require '_startup' -- has to be almost first, it is an actual startup thing
require '_dap.init'
require 'tree' -- file explorer actually needs some setup and then
require 'nvim_stock'
require '_telescope'
require 'treesitter'
require 'cmp_conf'
require '_lsp'
require 'coment'
require 'topbar'
require('nvim-autopairs').setup {}
require 'term'
require 'todo-comment'
require '_leap'
require 'autopairs'
require 'ai'