This repository has been archived by the owner on Jul 12, 2024. It is now read-only.
forked from brainfucksec/neovim-lua
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpacker_init.lua
164 lines (131 loc) · 3.26 KB
/
packer_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
-----------------------------------------------------------
-- Plugin manager configuration file
-----------------------------------------------------------
-- Plugin manager: packer.nvim
-- url: https://github.com/wbthomason/packer.nvim
-- For information about installed plugins see the README
--- neovim-lua/README.md
--- https://github.com/brainfucksec/neovim-lua#readme
local cmd = vim.cmd
cmd [[packadd packer.nvim]]
local packer = require 'packer'
-- Add packages
return packer.startup(function()
use 'wbthomason/packer.nvim' -- packer can manage itself
-- File explorer
use {
'nvim-tree/nvim-tree.lua',
requires = {
'nvim-tree/nvim-web-devicons'
},
}
-- FZF
use {
'junegunn/fzf.vim',
requires = {
'junegunn/fzf',
},
-- run = 'cd ~/.nvim-fzf && ./install --all',
}
use {
'ibhagwan/fzf-lua',
-- optional for icon support
requires = {
'nvim-tree/nvim-web-devicons'
}
}
-- Autopair
use {
'windwp/nvim-autopairs',
config = function()
require('nvim-autopairs').setup()
end
}
--lastplace
use 'farmergreg/vim-lastplace'
-- multi action
use 'mg979/vim-visual-multi'
-- Treesitter interface
use 'nvim-treesitter/nvim-treesitter'
use 'p00f/nvim-ts-rainbow'
-- cursorline
use {
'yamatsum/nvim-cursorline',
config = function()
require('nvim-cursorline').setup()
end
}
-- Color schemes
use 'sainnhe/sonokai'
-- tab
use 'romgrk/barbar.nvim'
-- LSP
use 'neovim/nvim-lspconfig'
use 'ojroques/nvim-lspfuzzy'
use 'nvim-lua/lsp-status.nvim'
-- LSP install
use "williamboman/mason.nvim"
use "williamboman/mason-lspconfig.nvim"
-- Autocomplete
use {
'hrsh7th/nvim-cmp',
requires = {
'hrsh7th/cmp-nvim-lsp',
'hrsh7th/cmp-cmdline',
'hrsh7th/cmp-path',
'hrsh7th/cmp-buffer',
-- luasnip
'L3MON4D3/LuaSnip',
'saadparwaiz1/cmp_luasnip',
'rafamadriz/friendly-snippets'
},
}
-- Comment
use {
'numToStr/Comment.nvim',
config = function()
require('Comment').setup()
end
}
-- Search hightlight
use 'kevinhwang91/nvim-hlslens'
-- Replace
use 'windwp/nvim-spectre'
-- Statusline
use 'nvim-lualine/lualine.nvim'
-- git labels
use {
'lewis6991/gitsigns.nvim',
}
-- Dashboard (start screen)
use {
'goolord/alpha-nvim',
requires = { 'nvim-tree/nvim-web-devicons' },
requires = { 'nvim-lua/plenary.nvim' },
}
-- Github copilot
use {
'github/copilot.vim'
}
-- use {
-- "zbirenbaum/copilot.lua"
-- }
use {
'johnfrankmorgan/whitespace.nvim',
config = function ()
require('whitespace-nvim').setup({
-- configuration options and their defaults
-- `highlight` configures which highlight is used to display
-- trailing whitespace
highlight = 'DiffDelete',
-- `ignored_filetypes` configures which filetypes to ignore when
-- displaying trailing whitespace
ignored_filetypes = { 'TelescopePrompt', 'Trouble', 'help' },
})
-- remove trailing whitespace with a keybinding
vim.keymap.set('n', '<Leader>mw', require('whitespace-nvim').trim)
end
}
-- cscope
use 'dhananjaylatkar/cscope_maps.nvim'
end)