diff options
Diffstat (limited to 'lua')
| -rw-r--r-- | lua/alpha/utils.lua | 4 | ||||
| -rw-r--r-- | lua/plugins/laravel.lua | 1 | ||||
| -rw-r--r-- | lua/plugins/neogen.lua | 8 |
3 files changed, 13 insertions, 0 deletions
diff --git a/lua/alpha/utils.lua b/lua/alpha/utils.lua index 5279832..a9c8549 100644 --- a/lua/alpha/utils.lua +++ b/lua/alpha/utils.lua @@ -21,4 +21,8 @@ utils.save_and_exec = function() vim.notify(string.format("File %s Sourced", current_file_name), vim.log.levels.INFO, { title = "Alpha Developer" }) end +utils.use_local = function (plugin_name) + return vim.fn.isdirectory(vim.fn.expand("~/code/plugins/").. plugin_name) == 1 +end + return utils diff --git a/lua/plugins/laravel.lua b/lua/plugins/laravel.lua index 60f8ad2..2fb1958 100644 --- a/lua/plugins/laravel.lua +++ b/lua/plugins/laravel.lua @@ -8,6 +8,7 @@ return { keys = { {"<leader>pa", ":Artisan<cr>"}, }, + dev = require('alpha.utils').use_local("laravel.nvim"), config = function() require("laravel").setup() require("telescope").load_extension("laravel") diff --git a/lua/plugins/neogen.lua b/lua/plugins/neogen.lua new file mode 100644 index 0000000..907f097 --- /dev/null +++ b/lua/plugins/neogen.lua @@ -0,0 +1,8 @@ +return { + "danymat/neogen", + dependencies = "nvim-treesitter/nvim-treesitter", + cmd = {"Neogen"}, + config = true, + -- Uncomment next line if you want to follow only stable versions + -- version = "*" +} |