-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplugins.lua
More file actions
89 lines (77 loc) · 1.67 KB
/
Copy pathplugins.lua
File metadata and controls
89 lines (77 loc) · 1.67 KB
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
-- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath('data') .. '/lazy/lazy.nvim'
if not vim.uv.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)
require('lazy').setup({
-- LSP Support
'neovim/nvim-lspconfig',
{
'williamboman/mason.nvim',
build = function()
pcall(vim.cmd, 'MasonUpdate')
end,
},
'williamboman/mason-lspconfig.nvim',
-- Autocompletion
'hrsh7th/nvim-cmp',
'hrsh7th/cmp-nvim-lsp',
'L3MON4D3/LuaSnip',
-- Shows git diff on the side
{
'lewis6991/gitsigns.nvim',
config = function()
require('gitsigns').setup()
end
},
-- Auto-closing brackets on enter({})
'rstacruz/vim-closer',
-- Highlights matching brackets({} if else end)
'andymass/vim-matchup',
-- Commenting(gcc)
{
'numToStr/Comment.nvim',
config = function()
require('Comment').setup()
end
},
-- Tree view
{
'nvim-tree/nvim-tree.lua',
dependencies = {
'nvim-tree/nvim-web-devicons',
},
config = function()
require('nvim-tree').setup {
git = {
ignore = false
}
}
end
},
-- File search
{
'nvim-telescope/telescope.nvim',
dependencies = { 'nvim-lua/plenary.nvim' }
},
-- Rails tools
'tpope/vim-rails',
-- Color scheme
'folke/tokyonight.nvim',
-- Status line
{
'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
config = function()
require('lualine').setup()
end
},
-- Toggle terminal
{ 'akinsho/toggleterm.nvim', version = '*' },
})