diff options
Diffstat (limited to '.config/nvim/lua/dts/packer.lua')
| -rw-r--r-- | .config/nvim/lua/dts/packer.lua | 70 |
1 files changed, 70 insertions, 0 deletions
diff --git a/.config/nvim/lua/dts/packer.lua b/.config/nvim/lua/dts/packer.lua new file mode 100644 index 0000000..c00e63b --- /dev/null +++ b/.config/nvim/lua/dts/packer.lua @@ -0,0 +1,70 @@ +-- 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. + 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"}, + } + } +end) + |
