diff options
| author | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-02-03 19:32:51 +0100 |
|---|---|---|
| committer | Ariel D'Alessandro <dalessandro.ariel@gmail.com> | 2023-02-03 19:32:51 +0100 |
| commit | 91154edc7f54d9a57a265fcaad1309c2e295ae63 (patch) | |
| tree | 2815717440a3bcd652247611c8401fb83c41b30d | |
| parent | 870d3cfae760265c01403deb2b973e500fda06df (diff) | |
| download | nvim-conf-91154edc7f54d9a57a265fcaad1309c2e295ae63.tar.gz nvim-conf-91154edc7f54d9a57a265fcaad1309c2e295ae63.zip | |
fix: clean scratches from the repository
| -rw-r--r-- | .gitignore | 2 | ||||
| -rw-r--r-- | lazy-lock.json | 6 | ||||
| -rw-r--r-- | lua/alpha/scratchs/behat-test.lua | 80 | ||||
| -rw-r--r-- | lua/alpha/scratchs/laravel.lua | 31 | ||||
| -rw-r--r-- | lua/alpha/scratchs/sample.lua | 29 | ||||
| -rw-r--r-- | lua/scratchs/.gitkeep | 0 |
6 files changed, 5 insertions, 143 deletions
@@ -1,3 +1,3 @@ -plugin/packer_compiled.lua undodir +lua/scratchs/* projects diff --git a/lazy-lock.json b/lazy-lock.json index 539f555..fa0a7ce 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -6,10 +6,11 @@ "cmp-dap": { "branch": "master", "commit": "d16f14a210cd28988b97ca8339d504533b7e09a4" }, "cmp-git": { "branch": "main", "commit": "169202582f900b0e189eed5153b291383bfbba47" }, "cmp-nvim-lsp": { "branch": "main", "commit": "59224771f91b86d1de12570b4070fe4ad7cd1eeb" }, - "cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "d2768cb1b83de649d57d967085fe73c5e01f8fd7" }, + "cmp-nvim-lsp-signature-help": { "branch": "main", "commit": "3d8912ebeb56e5ae08ef0906e3a54de1c66b92f1" }, "cmp-nvim-lua": { "branch": "main", "commit": "f3491638d123cfd2c8048aefaf66d246ff250ca6" }, "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, "cmp_luasnip": { "branch": "master", "commit": "18095520391186d634a0045dacaa346291096566" }, + "composer.nvim": { "branch": "main", "commit": "e62eaaef7c978d96a2abfeb2ca570650a4f21528" }, "dressing.nvim": { "branch": "master", "commit": "4436d6f41e2f6b8ada57588acd1a9f8b3d21453c" }, "fidget.nvim": { "branch": "main", "commit": "44585a0c0085765195e6961c15529ba6c5a2a13b" }, "fzf.vim": { "branch": "master", "commit": "dc71692255b62d1f67dc55c8e51ab1aa467b1d46" }, @@ -29,7 +30,7 @@ "neogen": { "branch": "main", "commit": "465af9d6c6fb7f360175991dcc23fc10917e3a06" }, "null-ls.nvim": { "branch": "main", "commit": "8f5d730021497233c39d3adbf4b8043d4be163f8" }, "nvim-autopairs": { "branch": "master", "commit": "5a3523ddb573804752de6c021c5cb82e267b79ca" }, - "nvim-cmp": { "branch": "main", "commit": "e7e2ef7031db8e0cfad7ad9916ec766ddd9dbb3b" }, + "nvim-cmp": { "branch": "main", "commit": "cfafe0a1ca8933f7b7968a287d39904156f2c57d" }, "nvim-dap": { "branch": "master", "commit": "0e376f00e7fac143e29e1017d2ac2cc3df13d185" }, "nvim-dap-go": { "branch": "main", "commit": "6f045a72a05a78e4071dd0880f08214a2bb1461b" }, "nvim-dap-ui": { "branch": "master", "commit": "885e958ff9de30cfbc359259eccf28cc493ad46b" }, @@ -43,6 +44,7 @@ "nvim-treesitter-refactor": { "branch": "master", "commit": "75f5895cc662d61eb919da8050b7a0124400d589" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "249d90a84df63f3ffff65fcc06a45d58415672de" }, "nvim-web-devicons": { "branch": "master", "commit": "a421d183ef37dfa13f51a5805bed2381aebf9080" }, + "php-code-actions.nvim": { "branch": "main", "commit": "a85a695c58f9c5e8033d824ffae366e9797e0b28" }, "playground": { "branch": "master", "commit": "c481c660fa903a0e295902b1765ecfbd6e76a556" }, "plenary.nvim": { "branch": "master", "commit": "9a0d3bf7b832818c042aaf30f692b081ddd58bd9" }, "popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" }, diff --git a/lua/alpha/scratchs/behat-test.lua b/lua/alpha/scratchs/behat-test.lua deleted file mode 100644 index 805459f..0000000 --- a/lua/alpha/scratchs/behat-test.lua +++ /dev/null @@ -1,80 +0,0 @@ --- TODO --- vim.cmd("vsplit") --- winh = vim.api.nvim_get_current_win() --- bufh = vim.api.nvim_create_buf(true, true) --- vim.api.nvim_win_set_buf(winh, bufh) --- vim.api.nvim_set_current_win(winh) --- --- should get current window, switch for the buffer and get back to the buffer, that is just for the initial not all the time for every save --- - -local attach_to_buffer = function(output_bufnr, command) - vim.api.nvim_create_autocmd("BufWritePost", { - group = vim.api.nvim_create_augroup("behat-auto-test", { clear = true }), - pattern = { "*.php", "*.feature" }, - callback = function() - local append_data = function(_, data) - if data then - vim.api.nvim_buf_set_option(output_bufnr, "modifiable", true) - vim.api.nvim_buf_set_lines(output_bufnr, -1, -1, false, data) - vim.api.nvim_buf_set_option(output_bufnr, "modifiable", false) - end - end - - vim.api.nvim_buf_set_option(output_bufnr, "modifiable", true) - vim.api.nvim_buf_set_lines(output_bufnr, 0, -1, false, { "Behat test output" }) - vim.api.nvim_buf_set_option(output_bufnr, "modifiable", false) - vim.fn.jobstart(command, { - stdout_buffered = true, - on_stdout = append_data, - on_stderr = append_data, - }) - end, - }) -end - -vim.api.nvim_create_user_command("Behat", function() - local fname = vim.fn.expand "%" - local line = vim.api.nvim_win_get_cursor(0)[1] - local command = - vim.split(string.format("docker-compose exec -T -u 1000:1000 php-fpm bin/behat %s:%d", fname, line), " ") - -- TODO generate dinamically - -- local output_bufnr = 214 - - local current_win = vim.api.nvim_get_current_win() - vim.cmd "vsplit" - local winh = vim.api.nvim_get_current_win() - local bufh = vim.api.nvim_create_buf(true, true) - vim.api.nvim_win_set_buf(winh, bufh) - vim.api.nvim_set_current_win(current_win) - vim.api.nvim_buf_set_name(bufh, string.format("Behat %s:%s", fname, line)) - vim.api.nvim_buf_set_option(bufh, "modifiable", false) - vim.api.nvim_win_set_option(winh, "number", false) - vim.api.nvim_win_set_option(winh, "relativenumber", false) - - attach_to_buffer(bufh, command) -end, {}) - -vim.api.nvim_create_user_command("BehatFile", function() - local fname = vim.fn.expand "%" - local command = vim.split(string.format("docker-compose exec -T -u 1000:1000 php-fpm bin/behat %s", fname), " ") - -- TODO generate dinamically - -- local output_bufnr = 214 - - local current_win = vim.api.nvim_get_current_win() - vim.cmd "vsplit" - local winh = vim.api.nvim_get_current_win() - local bufh = vim.api.nvim_create_buf(true, true) - vim.api.nvim_win_set_buf(winh, bufh) - vim.api.nvim_set_current_win(current_win) - vim.api.nvim_buf_set_name(bufh, string.format "Behat Test") - vim.api.nvim_buf_set_option(bufh, "modifiable", false) - vim.api.nvim_win_set_option(winh, "number", false) - vim.api.nvim_win_set_option(winh, "relativenumber", false) - - attach_to_buffer(bufh, command) -end, {}) - -vim.api.nvim_create_user_command("BehatStop", function() - vim.api.nvim_del_augroup_by_name "behat-auto-test" -end, {}) diff --git a/lua/alpha/scratchs/laravel.lua b/lua/alpha/scratchs/laravel.lua deleted file mode 100644 index 753cc7b..0000000 --- a/lua/alpha/scratchs/laravel.lua +++ /dev/null @@ -1,31 +0,0 @@ --- I want to improve a quality of life on controllers --- Want to show the uri beside de controller --- Why just stetics --- --- Give a warning if the controller is missing some assigned routes --- - --- Snippet for creating relationships --- A select node for the type of relation on the return type --- base on that node which function should call --- base on the name and type create the name?? --- --- Want to have something to do with docker and projects --- --- Problem when I switch project sail is runnin in another one --- --- local artisan = R "laravel.artisan" --- --- P(artisan.commands(true)) - --- local keys = vim.api.nvim_replace_termcodes("<c-c>", true, false, true) --- vim.api.nvim_chan_send(63, keys) --- vim.cmd([[call chansend(23, "\<c-c>")]]) - --- P(require("laravel.app").jobs) - -local keys = vim.api.nvim_replace_termcodes("<c-c>", true, false, true) --- foreach open task do this -for _, job in ipairs(require("laravel.app").jobs) do - vim.api.nvim_chan_send(job, keys) -end diff --git a/lua/alpha/scratchs/sample.lua b/lua/alpha/scratchs/sample.lua deleted file mode 100644 index 68052f5..0000000 --- a/lua/alpha/scratchs/sample.lua +++ /dev/null @@ -1,29 +0,0 @@ -local M = {} - -local action_state = require "telescope.actions.state" -local actions = require "telescope.actions" - -M.find_config = function() - require("telescope.builtin").find_files { - prompt_title = "< Neovim >", - cwd = "$HOME/.config/nvim/", - } -end - -M.find_plugin = function() - require("telescope.builtin").find_files { - prompt_title = "< Plugins >", - cwd = "$HOME/.config/nvim/lua/alpha/plugins/", - attach_mappings = function(_, map) - map("i", "<C-t>", function(prompt_bufnr) - local new_plugin = action_state.get_current_line() - actions.close(prompt_bufnr) - vim.cmd(string.format("edit ~/.config/nvim/lua/alpha/plugins/%s.lua", new_plugin)) - end) - - return true - end, - } -end - -M.find_plugin() diff --git a/lua/scratchs/.gitkeep b/lua/scratchs/.gitkeep new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/lua/scratchs/.gitkeep |