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
|
-- This file can be loaded by calling `lua require("plugins")` from your init.vim
-- Only required if you have packer configured as `opt`
vim.cmd [[packadd packer.nvim]]
return require("packer").startup(function(use)
-- Packer can manage itself
use "wbthomason/packer.nvim"
-- Automatically add closing brackets, etc.
use {
"windwp/nvim-autopairs",
config = function()
require("nvim-autopairs").setup()
end
}
-- Split and join arrays and methods.
-- gS to split one-liner into multiple lines.
-- gJ to join a block into a single-line statement.
use {
"AndrewRadev/splitjoin.vim",
config = function()
vim.g.splitjoin_html_attributes_bracket_on_new_line = 1
vim.g.splitjoin_trailing_comma = 1
vim.g.splitjoin_php_method_chain_full = 1
end
}
-- Automatically fix indentation when pasting.
use "sickill/vim-pasta"
-- Fuzzy finder.
use {
"nvim-telescope/telescope.nvim", tag = "0.1.1",
requires = { {"nvim-lua/plenary.nvim"} }
}
-- Colorscheme.
use "shaunsingh/nord.nvim"
-- Treesitter.
use({"nvim-treesitter/nvim-treesitter", run = ":TSUpdate"})
-- Shows the context of the currently visible buffer contents.
use("nvim-treesitter/nvim-treesitter-context");
-- LSP.
use {
"VonHeikemen/lsp-zero.nvim",
branch = "v1.x",
requires = {
-- LSP Support
{"neovim/nvim-lspconfig"},
{"williamboman/mason.nvim"},
{"williamboman/mason-lspconfig.nvim"},
-- Autocompletion
{"hrsh7th/nvim-cmp"},
{"hrsh7th/cmp-nvim-lsp"},
{"hrsh7th/cmp-buffer"},
{"hrsh7th/cmp-path"},
{"saadparwaiz1/cmp_luasnip"},
{"hrsh7th/cmp-nvim-lua"},
-- Snippets
{"L3MON4D3/LuaSnip"},
{"rafamadriz/friendly-snippets"},
}
}
-- Enable * seaching with visual selected text.
use "nelstrom/vim-visual-star-search"
-- Nice status line.
use {
"nvim-lualine/lualine.nvim",
requires = {"nvim-tree/nvim-web-devicons"},
}
-- Nice buffer status line.
use {
"akinsho/bufferline.nvim",
tag = "v3.*",
requires = {"nvim-tree/nvim-web-devicons"},
}
-- Disraction free writing.
use "folke/zen-mode.nvim"
end)
|