diff options
author | christianchiarulli <[email protected]> | 2021-07-03 16:34:43 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-07-03 16:34:43 -0400 |
commit | 8f37e7f2784b56d918f64960fd7b5c02947904f4 (patch) | |
tree | 779334acd01341786e81f00140a18bd91403b168 /lua/plugins.lua | |
parent | 703fdfd48d966c8a74085e9d77816fa76070b65a (diff) | |
parent | 80bda1932308dcaac74958ef771a9c060446f093 (diff) |
Merge branch 'master' of github.com:ChristianChiarulli/LunarVim into stable
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r-- | lua/plugins.lua | 62 |
1 files changed, 29 insertions, 33 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua index bc78ebab..0a59ae8d 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -10,21 +10,19 @@ if fn.empty(fn.glob(install_path)) > 0 then end local packer_ok, packer = pcall(require, "packer") -if not packer_ok then - return -end +if not packer_ok then return end packer.init { - -- compile_path = vim.fn.stdpath('data')..'/site/pack/loader/start/packer.nvim/plugin/packer_compiled.vim', - compile_path = require("packer.util").join_paths(vim.fn.stdpath('config'), 'plugin', 'packer_compiled.vim'), - git = { - clone_timeout = 300 - }, - display = { - open_fn = function() - return require("packer.util").float { border = "single" } - end, - }, + -- compile_path = vim.fn.stdpath('data')..'/site/pack/loader/start/packer.nvim/plugin/packer_compiled.vim', + compile_path = require("packer.util").join_paths(vim.fn.stdpath('config'), + 'plugin', + 'packer_compiled.vim'), + git = {clone_timeout = 300}, + display = { + open_fn = function() + return require("packer.util").float {border = "single"} + end + } } vim.cmd "autocmd BufWritePost plugins.lua PackerCompile" -- Auto compile when there are changes in plugins.lua @@ -46,15 +44,15 @@ return require("packer").startup(function(use) config = [[require('lv-telescope')]], cmd = "Telescope" } - -- Snap - use { - "camspiers/snap", - rocks = "fzy", - config = function() - require("lv-snap").config() - end, - disable = not O.plugin.snap.active, - } + -- Snap TODO disable for now, need to only install fzy when user specifies they want to use snap + -- use { + -- "camspiers/snap", + -- rocks = "fzy", + -- config = function() + -- require("lv-snap").config() + -- end, + -- disable = not O.plugin.snap.active + -- } -- Autocomplete use { "hrsh7th/nvim-compe", @@ -90,8 +88,11 @@ return require("packer").startup(function(use) use {"folke/which-key.nvim"} -- Autopairs - use {"windwp/nvim-autopairs", - config = function() require'lv-autopairs' end + use { + "windwp/nvim-autopairs", + config = function() + require 'lv-autopairs' + end } -- Comments @@ -221,7 +222,6 @@ return require("packer").startup(function(use) use { "lukas-reineke/indent-blankline.nvim", - branch = "lua", event = "BufRead", setup = function() @@ -400,9 +400,8 @@ return require("packer").startup(function(use) -- Lush Create Color Schemes use { "rktjmp/lush.nvim", - event = "VimEnter", -- cmd = {"LushRunQuickstart", "LushRunTutorial", "Lushify"}, - -- disable = not O.plugin.lush.active, + disable = not O.plugin.lush.active, } -- HTML preview use { @@ -421,15 +420,12 @@ return require("packer").startup(function(use) -- LANGUAGE SPECIFIC GOES HERE -- Latex TODO what filetypes should this be active for? - use {"lervag/vimtex", ft = "latex", disable = not O.lang.latex.active} + use {"lervag/vimtex", ft = "latex"} -- Rust tools -- TODO: use lazy loading maybe? - use {"simrat39/rust-tools.nvim", disable = not O.lang.rust.active} + use {"simrat39/rust-tools.nvim", ft = "rust"} -- Elixir - use {"elixir-editors/vim-elixir", - ft = {"elixir", "eelixir"}, - disable = not O.lang.elixir.active - } + use {"elixir-editors/vim-elixir", ft = {"elixir", "eelixir", "euphoria3"}} end) |