summaryrefslogtreecommitdiff
path: root/lua/plugins.lua
diff options
context:
space:
mode:
authorChris <[email protected]>2021-07-10 10:51:53 -0400
committerChris <[email protected]>2021-07-10 10:51:53 -0400
commitf9389d2282dbec7ba51640d053824fae69f9b512 (patch)
tree4f97094926dda73fa2d66b25641e4f1b7f88fb19 /lua/plugins.lua
parent9624905ad851925d6761059ee41d4f247e3cf430 (diff)
refactor plugins
Diffstat (limited to 'lua/plugins.lua')
-rw-r--r--lua/plugins.lua70
1 files changed, 13 insertions, 57 deletions
diff --git a/lua/plugins.lua b/lua/plugins.lua
index e150efc7..d1f52074 100644
--- a/lua/plugins.lua
+++ b/lua/plugins.lua
@@ -50,6 +50,18 @@ return require("packer").startup(function(use)
end,
}
+ -- Autopairs
+ use {
+ "windwp/nvim-autopairs",
+ event = "InsertEnter",
+ after = { "telescope.nvim" },
+ config = function()
+ require "lv-autopairs"
+ end,
+ }
+
+ -- Snippets
+
use { "hrsh7th/vim-vsnip", event = "InsertEnter" }
use { "rafamadriz/friendly-snippets", event = "InsertEnter" }
@@ -94,20 +106,10 @@ return require("packer").startup(function(use)
event = "BufWinEnter",
}
- -- Autopairs
- use {
- "windwp/nvim-autopairs",
- event = "InsertEnter",
- after = { "telescope.nvim" },
- config = function()
- require "lv-autopairs"
- end,
- }
-
-- Comments
use {
"terrortylor/nvim-comment",
- event = "BufWinEnter",
+ event = "BufRead",
config = function()
local status_ok, nvim_comment = pcall(require, "nvim_comment")
if not status_ok then
@@ -210,39 +212,8 @@ return require("packer").startup(function(use)
disable = not O.plugin.indent_line.active,
}
- -- Diffview
- use {
- "sindrets/diffview.nvim",
- event = "BufRead",
- disable = not O.plugin.diffview.active,
- }
-
---------------------------------------------------------------------------------
- -- comments in context
- use {
- "JoosepAlviste/nvim-ts-context-commentstring",
- event = "BufRead",
- disable = not O.plugin.ts_context_commentstring.active,
- }
-
- -- Use project for telescope
- use {
- "nvim-telescope/telescope-project.nvim",
- event = "BufWinEnter",
- setup = function()
- vim.cmd [[packadd telescope.nvim]]
- end,
- disable = not O.plugin.telescope_project.active,
- }
-
- -- Lush Create Color Schemes
- use {
- "rktjmp/lush.nvim",
- -- cmd = {"LushRunQuickstart", "LushRunTutorial", "Lushify"},
- disable = not O.plugin.lush.active,
- }
-
-- LANGUAGE SPECIFIC GOES HERE
use {
"lervag/vimtex",
@@ -278,21 +249,6 @@ return require("packer").startup(function(use)
disable = not O.lang.java.java_tools.active,
}
- -- use {
- -- "jose-elias-alvarez/null-ls.nvim",
- -- ft = {
- -- "javascript",
- -- "javascriptreact",
- -- "javascript.jsx",
- -- "typescript",
- -- "typescriptreact",
- -- "typescript.tsx",
- -- },
- -- config = function()
- -- require("null-ls").setup()
- -- end,
- -- }
-
-- Custom semantic text objects
use {
"nvim-treesitter/nvim-treesitter-textobjects",