-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathinit.lua
104 lines (83 loc) · 2.9 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
-- VIM PLUG CONFIGURATION
-- Install and load vim-plug if not installed.
local plug_path = vim.fn.stdpath("data") .. "/site/autoload/plug.vim"
if vim.fn.filereadable(plug_path) == 0 then
vim.fn.system({
"curl",
"-fLo",
plug_path,
"--create-dirs",
"https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim",
})
vim.cmd("source " .. plug_path)
vim.cmd("PlugInstall --sync | source $MYVIMRC")
end
-- Plugins to install.
vim.cmd([[
call plug#begin()
Plug 'https://github.com/preservim/nerdtree'
Plug 'https://github.com/nvim-telescope/telescope.nvim'
Plug 'https://github.com/nvim-lua/plenary.nvim'
Plug 'https://github.com/dasupradyumna/midnight.nvim'
Plug 'https://github.com/vim-airline/vim-airline'
Plug 'https://github.com/neovim/nvim-lspconfig'
Plug 'https://github.com/hrsh7th/nvim-cmp'
Plug 'https://github.com/hrsh7th/cmp-buffer'
Plug 'https://github.com/hrsh7th/cmp-path'
Plug 'https://github.com/hrsh7th/cmp-nvim-lsp'
Plug 'https://github.com/fatih/vim-go'
Plug 'https://github.com/nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'}
Plug 'https://github.com/sbdchd/neoformat'
Plug 'https://github.com/stevearc/dressing.nvim'
Plug 'https://github.com/akinsho/flutter-tools.nvim'
Plug 'https://github.com/mfussenegger/nvim-dap'
Plug 'https://github.com/tanvirtin/vgit.nvim'
Plug 'https://github.com/stevearc/dressing.nvim'
Plug 'https://github.com/akinsho/flutter-tools.nvim'
Plug 'https://github.com/williamboman/mason.nvim'
Plug 'https://github.com/mhartington/formatter.nvim'
Plug 'https://github.com/neoclide/coc.nvim', {'branch': 'release'}
Plug 'bluz71/vim-moonfly-colors', { 'as': 'moonfly' }
Plug 'nvim-lualine/lualine.nvim'
call plug#end()
]])
-- This makes the plugin config accessible in other directory.
package.path = package.path .. ";/home/ubuntu/.config/nvim/?.lua"
-- CUSTOM CONFIGURATION
require("plugin_config.vim")
-- ARDUINO CONFIGURATION
require("plugin_config.arduino")
-- THEME CONFIGURATION
require("plugin_config.theme")
-- NERDTREE CONFIGURATION
require("plugin_config.nerdtree")
-- TELESCOPE CONFIGURATION
require("plugin_config.telescope")
-- C/C++ CONFIGURATION
require("plugin_config.c_c++")
-- BASH CONFIGURATION
require("plugin_config.bash")
-- GO CONFIGURATION
require("plugin_config.go")
-- TAILWIND CSS CONFIGURATION
require("plugin_config.tailwindcss")
-- TYPESCRIPT CONFIGURATION
require("plugin_config.typescript")
-- TYPESCRIPT CONFIGURATION
require("plugin_config.deno")
-- MARKDOWN CONFIGURATION
require("plugin_config.markdown")
-- LUA CONFIGURATION
require("plugin_config.lua")
-- MASON CONFIGURATION
require("plugin_config.mason")
-- NVIM-CMP CONFIGURATION
require("plugin_config.cmp")
-- NEOFORMAT CONFIGURATION
require("plugin_config.neoformat")
-- GIT CONFIGURATION
require("plugin_config.git")
-- PYTHON CONFIGURATION
require("plugin_config.python")
-- TERRAFORM CONFIGURATION
require("plugin_config.terraform")