From 2a3ee1c8f696e6f3a9972a05f8b5f8681c244a2e Mon Sep 17 00:00:00 2001 From: philw Date: Sat, 17 Feb 2024 12:42:20 +0100 Subject: Migrate to lazy and coq --- lua/config/plugins.lua | 83 ++++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 83 insertions(+) create mode 100644 lua/config/plugins.lua (limited to 'lua/config/plugins.lua') diff --git a/lua/config/plugins.lua b/lua/config/plugins.lua new file mode 100644 index 0000000..dd09a4d --- /dev/null +++ b/lua/config/plugins.lua @@ -0,0 +1,83 @@ +-- vim.cmd([[packadd packer.nvim]]) +-- return require("packer").startup(function(use) +-- use("neovim/nvim-lspconfig") +-- use("lervag/vimtex") +-- use({ +-- "VonHeikemen/lsp-zero.nvim", +-- requires = { +-- { "neovim/nvim-lspconfig" }, +-- { "williamboman/mason.nvim" }, +-- { "williamboman/mason-lspconfig.nvim" }, +-- { "hrsh7th/nvim-cmp" }, +-- { "hrsh7th/cmp-buffer" }, +-- { "hrsh7th/cmp-path" }, +-- { "saadparwaiz1/cmp_luasnip" }, +-- { "hrsh7th/cmp-nvim-lsp" }, +-- { "hrsh7th/cmp-nvim-lua" }, +-- { "rafamadriz/friendly-snippets" }, +-- }, +-- }) +-- use({ +-- "L3MON4D3/LuaSnip", +-- tag = "v2.*", +-- run = "make install_jsregexp", +-- }) +-- use({ +-- "iamcco/markdown-preview.nvim", +-- run = "cd app && npm install", +-- setup = function() +-- vim.g.mkdp_filetypes = { "markdown" } +-- end, +-- ft = { "markdown" }, +-- }) +-- use({ +-- "windwp/nvim-autopairs", +-- config = function() +-- require("nvim-autopairs").setup({}) +-- end, +-- }) +-- end) + +local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" +if not vim.loop.fs_stat(lazypath) then + vim.fn.system({ + "git", + "clone", + "--filter=blob:none", + "https://github.com/folke/lazy.nvim.git", + "--branch=stable", -- latest stable release + lazypath, + }) +end + +vim.opt.rtp:prepend(lazypath) +require("lazy").setup({ + "nvim-lua/plenary.nvim", + "airblade/vim-gitgutter", + "nvim-treesitter/nvim-treesitter", + "neovim/nvim-lspconfig", + 'nvim-telescope/telescope.nvim', tag = '0.1.5', + dependencies = { 'nvim-lua/plenary.nvim' }, + "windwp/nvim-autopairs", + config = function() + require("nvim-autopairs").setup({}) + end, + { 'nvim-telescope/telescope-fzf-native.nvim', + build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build', + keys= { + {"/", false}, + { "f", "Telescope find_files", desc = "Find Files" }, + { "g", "Telescope live_grep", desc = "Grep" }, + { "b", "Telescope buffers", desc = "Grep" }, + } +}, +{ + 'numToStr/Comment.nvim', + lazy = false, +}, + +{ + "ms-jpq/coq_nvim", +}, +}) + -- cgit v1.2.3