diff --git a/init.lua b/init.lua index 90128821..1cf37b3b 100644 --- a/init.lua +++ b/init.lua @@ -249,6 +249,8 @@ require('lazy').setup({ -- -- This is equivalent to: -- require('Comment').setup({}) + + 'BlackLight/nvim-http', -- "gc" to comment visual regions/lines { 'numToStr/Comment.nvim', opts = {} }, @@ -407,7 +409,11 @@ require('lazy').setup({ -- i = { [''] = 'to_fuzzy_refine' }, -- }, -- }, - -- pickers = {} + pickers = { + find_files = { + hidden = true + } + }, extensions = { ['ui-select'] = { require('telescope.themes').get_dropdown(), @@ -1206,6 +1212,8 @@ require('lazy').setup({ -- require 'kickstart.plugins.lazygit', require 'kickstart.plugins.dadbod', + require 'kickstart.plugins.notify', + require 'kickstart.plugins.laravel', require 'kickstart.plugins.debug', require 'kickstart.plugins.indent_line', -- require 'kickstart.plugins.lint', diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 88982fb2..6d811231 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -41,12 +41,13 @@ return { -- online, please don't ask me how to install them :) ensure_installed = { -- Update this to ensure that you have the debuggers for the langs you want - 'delve', + -- 'delve', }, } -- Basic debugging keymaps, feel free to change to your liking! vim.keymap.set('n', '', dap.continue, { desc = 'Debug: Start/Continue' }) + vim.keymap.set('n', '', dap.close, { desc = 'Debug: Stop debugging' }) vim.keymap.set('n', '', dap.step_into, { desc = 'Debug: Step Into' }) vim.keymap.set('n', '', dap.step_over, { desc = 'Debug: Step Over' }) vim.keymap.set('n', '', dap.step_out, { desc = 'Debug: Step Out' }) @@ -77,6 +78,20 @@ return { }, } + dap.adapters.php = { + type = 'executable', + command = 'node', + args = { '~/.local/share/nvim/mason/packages/php-debug-adapter/extension/out/phpDebug.js' }, + } + + dap.configurations.php = { + { + type = 'php', + request = 'launch', + name = 'Listen for Xdebug 9003', + port = 9000, + }, + } -- Toggle to see last session result. Without this, you can't see session output in case of unhandled exception. vim.keymap.set('n', '', dapui.toggle, { desc = 'Debug: See last session result.' }) diff --git a/lua/kickstart/plugins/laravel.lua b/lua/kickstart/plugins/laravel.lua new file mode 100644 index 00000000..76f4299d --- /dev/null +++ b/lua/kickstart/plugins/laravel.lua @@ -0,0 +1,17 @@ +return { + "adalessa/laravel.nvim", + dependencies = { + "nvim-telescope/telescope.nvim", + "tpope/vim-dotenv", + "MunifTanjim/nui.nvim", + "nvimtools/none-ls.nvim", + }, + cmd = { "Sail", "Artisan", "Composer", "Npm", "Yarn", "Laravel" }, + keys = { + { "la", ":Laravel artisan" }, + { "lr", ":Laravel routes" }, + { "lm", ":Laravel related" }, + }, + event = { "VeryLazy" }, + config = true, +} diff --git a/lua/kickstart/plugins/notify.lua b/lua/kickstart/plugins/notify.lua new file mode 100644 index 00000000..730fd2c0 --- /dev/null +++ b/lua/kickstart/plugins/notify.lua @@ -0,0 +1,10 @@ +return { + "rcarriga/nvim-notify", + config = function() + local notify = require("notify") + -- this for transparency + notify.setup({ background_colour = "#000000" }) + -- this overwrites the vim notify function + vim.notify = notify.notify + end +}