user defined plugins

This commit is contained in:
christianchiarulli 2021-07-05 15:35:06 -04:00
parent 6b41286d70
commit be9a5a0889
4 changed files with 41 additions and 27 deletions

View file

@ -39,42 +39,55 @@ O = {
database = { save_location = "~/.config/nvcode_db", auto_execute = 1 },
plugin = {
hop = { active = false },
dial = { active = false },
-- TODO remove non built-ins
-- Builtins
dashboard = { active = false },
matchup = { active = false },
colorizer = { active = false },
numb = { active = false },
zen = { active = false },
ts_playground = { active = false },
indent_line = { active = false },
ts_context_commentstring = { active = false },
telescope_fzy = { active = false },
telescope_project = { active = false },
indent_line = { active = false },
symbol_outline = { active = false },
debug = { active = false },
dap_install = { active = false },
lazygit = { active = false },
lush = { active = false },
diffview = { active = false },
----------------------------------------------------------------------
-- Non builtins
octo = { active = false },
gitlinker = { active = false },
todo_comments = { active = false },
gist = { active = false },
git_blame = { active = false },
lsp_colors = { active = false },
ranger = { active = false },
hop = { active = false },
dial = { active = false },
matchup = { active = false },
numb = { active = false },
bqf = { active = false },
trouble = { active = false },
floatterm = { active = false },
spectre = { active = false },
lsp_rooter = { active = false },
markdown_preview = { active = false },
bracey = { active = false },
codi = { active = false },
telescope_fzy = { active = false },
sanegx = { active = false },
snap = { active = false },
ranger = { active = false },
todo_comments = { active = false },
lsp_colors = { active = false },
git_blame = { active = false },
gist = { active = false },
gitlinker = { active = false },
lazygit = { active = false },
octo = { active = false },
lush = { active = false },
diffview = { active = false },
bracey = { active = false },
telescope_project = { active = false },
dap_install = { active = false },
tabnine = { active = false },
},
custom_plugins = {
-- use lv-config.lua for this not put here
},
user_autocommands = {

View file

@ -299,7 +299,7 @@ if O.plugin.telescope_project.active then
":lua require'telescope'.extensions.project.project{}<CR>",
{ noremap = true, silent = true }
)
mappings["p"] = "Projects"
mappings["P"] = "Projects"
end
-- [";"] = "Dashboard",

View file

@ -459,4 +459,6 @@ return require("packer").startup(function(use)
requires = "hrsh7th/nvim-compe",
disable = not O.plugin.tabnine.active,
}
for _, plugin in pairs(O.custom_plugins) do packer.use(plugin) end
end)

View file

@ -20,8 +20,9 @@ O.smart_case = true
O.lushmode = false
O.transparent_window = false
-- TODO User Config for predefined plugins
-- After changing plugin config exit and reopen LunarVim, Run :PackerInstall :PackerCompile
O.plugin.hop.active = false
O.bultin_plugin.hop.active = false
O.plugin.dial.active = false
O.plugin.dashboard.active = true
O.plugin.matchup.active = false
@ -95,11 +96,9 @@ O.lang.php.diagnostics.signs = true
O.lang.php.diagnostics.underline = true
O.lang.php.filetypes = { "php", "phtml" }
-- TODO Autocommands
-- https://neovim.io/doc/user/autocmd.html
-- local test = { "BufWinEnter", "*", "echo \"hi again\""}
-- table.insert(O.user_autocommands, test)
-- Autocommands (https://neovim.io/doc/user/autocmd.html)
-- O.user_autocommands = {{ "BufWinEnter", "*", "echo \"hi again\""}}
-- TODO Additional Plugins
-- Additional Plugins
-- O.custom_plugins = {{"windwp/nvim-ts-autotag"}}
-- TODO User Config for plugins