diff options
| author | David T. Sadler <davidtsadler@googlemail.com> | 2023-02-11 12:51:08 +0000 | 
|---|---|---|
| committer | David T. Sadler <davidtsadler@googlemail.com> | 2023-02-11 12:51:08 +0000 | 
| commit | c5d4e4a23a397ae1dc68682734f2fe26d3adf0f0 (patch) | |
| tree | 806f51c63abab0aba0e0c17170abe75eddbe019a /.config/nvim/lua/dts/packer.lua | |
| parent | 381b1cd773be35d3567ca562485b67b0502a152c (diff) | |
Switched to lua and install various plugins
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) +  | 
