From cd5dcab92a1e928eedb5214c64155742ccb08c37 Mon Sep 17 00:00:00 2001 From: Marco Moschettini Date: Sat, 25 May 2024 14:07:28 +0200 Subject: [PATCH] chore: cleanup nvim folder --- config/nvim/.gitignore | 8 - config/nvim/LICENSE | 201 ------------------------ config/nvim/README.md | 4 - config/nvim/init.lua | 6 - config/nvim/lazy-lock.json | 72 --------- config/nvim/lazyvim.json | 25 --- config/nvim/lua/config/autocmds.lua | 26 --- config/nvim/lua/config/keymaps.lua | 20 --- config/nvim/lua/config/lazy.lua | 47 ------ config/nvim/lua/config/options.lua | 73 --------- config/nvim/lua/marmos/discipline.lua | 43 ----- config/nvim/lua/plugins/bazel.lua | 6 - config/nvim/lua/plugins/colorscheme.lua | 8 - config/nvim/lua/plugins/completions.lua | 73 --------- config/nvim/lua/plugins/dashboard.lua | 70 --------- config/nvim/lua/plugins/disabled.lua | 10 -- config/nvim/lua/plugins/git.lua | 9 -- config/nvim/lua/plugins/headings.lua | 30 ---- config/nvim/lua/plugins/lint.lua | 17 -- config/nvim/lua/plugins/lsp.lua | 21 --- config/nvim/lua/plugins/mason.lua | 30 ---- config/nvim/lua/plugins/neo-tree.lua | 14 -- config/nvim/lua/plugins/noice.lua | 60 ------- config/nvim/lua/plugins/refactor.lua | 61 ------- config/nvim/lua/plugins/symbols.lua | 10 -- config/nvim/lua/plugins/telescope.lua | 17 -- config/nvim/lua/plugins/tmux.lua | 5 - config/nvim/lua/plugins/treesitter.lua | 39 ----- config/nvim/stylua.toml | 4 - 29 files changed, 1009 deletions(-) delete mode 100644 config/nvim/.gitignore delete mode 100644 config/nvim/LICENSE delete mode 100644 config/nvim/README.md delete mode 100644 config/nvim/init.lua delete mode 100644 config/nvim/lazy-lock.json delete mode 100644 config/nvim/lazyvim.json delete mode 100644 config/nvim/lua/config/autocmds.lua delete mode 100644 config/nvim/lua/config/keymaps.lua delete mode 100644 config/nvim/lua/config/lazy.lua delete mode 100644 config/nvim/lua/config/options.lua delete mode 100644 config/nvim/lua/marmos/discipline.lua delete mode 100644 config/nvim/lua/plugins/bazel.lua delete mode 100644 config/nvim/lua/plugins/colorscheme.lua delete mode 100644 config/nvim/lua/plugins/completions.lua delete mode 100644 config/nvim/lua/plugins/dashboard.lua delete mode 100644 config/nvim/lua/plugins/disabled.lua delete mode 100644 config/nvim/lua/plugins/git.lua delete mode 100644 config/nvim/lua/plugins/headings.lua delete mode 100644 config/nvim/lua/plugins/lint.lua delete mode 100644 config/nvim/lua/plugins/lsp.lua delete mode 100644 config/nvim/lua/plugins/mason.lua delete mode 100644 config/nvim/lua/plugins/neo-tree.lua delete mode 100644 config/nvim/lua/plugins/noice.lua delete mode 100644 config/nvim/lua/plugins/refactor.lua delete mode 100644 config/nvim/lua/plugins/symbols.lua delete mode 100644 config/nvim/lua/plugins/telescope.lua delete mode 100644 config/nvim/lua/plugins/tmux.lua delete mode 100644 config/nvim/lua/plugins/treesitter.lua delete mode 100644 config/nvim/stylua.toml diff --git a/config/nvim/.gitignore b/config/nvim/.gitignore deleted file mode 100644 index cc5457a..0000000 --- a/config/nvim/.gitignore +++ /dev/null @@ -1,8 +0,0 @@ -tt.* -.tests -doc/tags -debug -.repro -foo.* -*.log -data diff --git a/config/nvim/LICENSE b/config/nvim/LICENSE deleted file mode 100644 index 261eeb9..0000000 --- a/config/nvim/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/config/nvim/README.md b/config/nvim/README.md deleted file mode 100644 index 185280b..0000000 --- a/config/nvim/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# 💤 LazyVim - -A starter template for [LazyVim](https://github.com/LazyVim/LazyVim). -Refer to the [documentation](https://lazyvim.github.io/installation) to get started. diff --git a/config/nvim/init.lua b/config/nvim/init.lua deleted file mode 100644 index cf6b2b4..0000000 --- a/config/nvim/init.lua +++ /dev/null @@ -1,6 +0,0 @@ --- bootstrap lazy.nvim, LazyVim and your plugins -if vim.loader then - vim.loader.enable() -end - -require("config.lazy") diff --git a/config/nvim/lazy-lock.json b/config/nvim/lazy-lock.json deleted file mode 100644 index d9dcf1e..0000000 --- a/config/nvim/lazy-lock.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "LazyVim": { "branch": "main", "commit": "0f6ff53ce336082869314db11e9dfa487cf83292" }, - "LuaSnip": { "branch": "master", "commit": "878ace11983444d865a72e1759dbcc331d1ace4c" }, - "SchemaStore.nvim": { "branch": "main", "commit": "9a5992a881583d886bfbb46631a09f736f0fae50" }, - "ascii.nvim": { "branch": "master", "commit": "c1a315e811fa7c133f8f4827e63015a480d8a81b" }, - "blamer.nvim": { "branch": "master", "commit": "e0d43c11697300eb68f00d69df8b87deb0bf52dc" }, - "bufferline.nvim": { "branch": "main", "commit": "73edc1f2732678e7a681e3d3be49782610914f6b" }, - "catppuccin": { "branch": "main", "commit": "d97387aea8264f484bb5d5e74f2182a06c83e0d8" }, - "cmp-bazel": { "branch": "main", "commit": "68b45f8d341e8783b3c08285a5b02cbf38e43547" }, - "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, - "cmp-nvim-lsp": { "branch": "main", "commit": "39e2eda76828d88b773cc27a3f61d2ad782c922d" }, - "cmp-path": { "branch": "main", "commit": "91ff86cd9c29299a64f968ebb45846c485725f23" }, - "conform.nvim": { "branch": "master", "commit": "f3b930db4964d60e255c8f9e37b7f2218dfc08cb" }, - "copilot-cmp": { "branch": "master", "commit": "72fbaa03695779f8349be3ac54fa8bd77eed3ee3" }, - "copilot.lua": { "branch": "master", "commit": "f7612f5af4a7d7615babf43ab1e67a2d790c13a6" }, - "crates.nvim": { "branch": "main", "commit": "d556c00d60c9421c913ee54ff690df2a34f6264e" }, - "dashboard-nvim": { "branch": "master", "commit": "5182c09ac8085dc73b78ad0ea9f5479c9a866fc4" }, - "dial.nvim": { "branch": "master", "commit": "7af2daaaf933b0617ded0f78b49f4d5fc45f9f64" }, - "dressing.nvim": { "branch": "master", "commit": "3c38ac861e1b8d4077ff46a779cde17330b29f3a" }, - "friendly-snippets": { "branch": "main", "commit": "dd2fd1281d4b22e7b4a5bfafa3e142d958e251f2" }, - "harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" }, - "headlines.nvim": { "branch": "master", "commit": "618ef1b2502c565c82254ef7d5b04402194d9ce3" }, - "inc-rename.nvim": { "branch": "main", "commit": "7c6125b1ee476b56708a6518a37b2a3357f57bfc" }, - "indent-blankline.nvim": { "branch": "master", "commit": "d98f537c3492e87b6dc6c2e3f66ac517528f406f" }, - "lazy.nvim": { "branch": "main", "commit": "8f19915175395680808de529e4220da8dafc0759" }, - "lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" }, - "markdown-preview.nvim": { "branch": "master", "commit": "a923f5fc5ba36a3b17e289dc35dc17f66d0548ee" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "a4caa0d083aab56f6cd5acf2d42331b74614a585" }, - "mason.nvim": { "branch": "main", "commit": "49ff59aded1047a773670651cfa40e76e63c6377" }, - "mini.ai": { "branch": "main", "commit": "a0262e61f79dfc7bb940d1719c00b0ede042ddd7" }, - "mini.diff": { "branch": "main", "commit": "10cc9d370737b8b8c8d996fc537394635da0a4b1" }, - "mini.hipatterns": { "branch": "main", "commit": "088bbfef23e17934080f125751a94a2758ba7fdf" }, - "mini.pairs": { "branch": "main", "commit": "5c975d8f68dc1e11bf4b20ced71e7987ed782513" }, - "neo-tree.nvim": { "branch": "v3.x", "commit": "29f7c215332ba95e470811c380ddbce2cebe2af4" }, - "neoconf.nvim": { "branch": "main", "commit": "9092129e9a42ae26375001bd2e6118f8d57c7f2a" }, - "neodev.nvim": { "branch": "main", "commit": "ce9a2e8eaba5649b553529c5498acb43a6c317cd" }, - "neogen": { "branch": "main", "commit": "6de0add4805165317ab7d3d36b5cef48b1b865f3" }, - "noice.nvim": { "branch": "main", "commit": "f119045f38792ad5311e5f9be7a879e4c1a95fe0" }, - "nui.nvim": { "branch": "main", "commit": "b1b3dcd6ed8f355c78bad3d395ff645be5f8b6ae" }, - "nvim-ansible": { "branch": "main", "commit": "cb5d0cc79c1864b72d5ae40a926a1176b18f1b65" }, - "nvim-cmp": { "branch": "main", "commit": "5260e5e8ecadaf13e6b82cf867a909f54e15fd07" }, - "nvim-lint": { "branch": "master", "commit": "e19842a05aae484957ad20710444757bc0a61d63" }, - "nvim-lspconfig": { "branch": "master", "commit": "b972e7154bc94ab4ecdbb38c8edbccac36f83996" }, - "nvim-notify": { "branch": "master", "commit": "d333b6f167900f6d9d42a59005d82919830626bf" }, - "nvim-snippets": { "branch": "main", "commit": "5669b8d4eb6bbc5ebadf522f0e30a4cfb5a308f6" }, - "nvim-spectre": { "branch": "master", "commit": "5690ea46baf08bbc1623980012e14b6239ce582e" }, - "nvim-treesitter": { "branch": "master", "commit": "6d56c5f404d3b116bab167bc03993cfb0a83f8aa" }, - "nvim-treesitter-textobjects": { "branch": "master", "commit": "3557e41418b4a6c5b85d5d64abe94c9c50fa9b14" }, - "nvim-ts-autotag": { "branch": "main", "commit": "8ae54b90e36ef1fc5267214b30c2cbff71525fe4" }, - "nvim-web-devicons": { "branch": "master", "commit": "e37bb1feee9e7320c76050a55443fa843b4b6f83" }, - "persistence.nvim": { "branch": "main", "commit": "5fe077056c821aab41f87650bd6e1c48cd7dd047" }, - "plenary.nvim": { "branch": "master", "commit": "a3e3bc82a3f95c5ed0d7201546d5d2c19b20d683" }, - "project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" }, - "refactoring.nvim": { "branch": "master", "commit": "d2786877c91aa409c824f27b4ce8a9f560dda60a" }, - "rustaceanvim": { "branch": "master", "commit": "e306c742bd7f7183e371cd91268b72d9db1bbae0" }, - "symbols-outline.nvim": { "branch": "master", "commit": "564ee65dfc9024bdde73a6621820866987cbb256" }, - "telescope-fzf-native.nvim": { "branch": "main", "commit": "9ef21b2e6bb6ebeaf349a0781745549bbb870d27" }, - "telescope-live-grep-args.nvim": { "branch": "master", "commit": "4122e146d199c0d6d1cfb359c76bc1250d522460" }, - "telescope-terraform-doc.nvim": { "branch": "main", "commit": "e09181f76acefaf66d2b55149bebe939828234b4" }, - "telescope-terraform.nvim": { "branch": "main", "commit": "072c97023797ca1a874668aaa6ae0b74425335df" }, - "telescope.nvim": { "branch": "master", "commit": "5665d93988acfbb0747bdbf4f4cb583bcebc8930" }, - "todo-comments.nvim": { "branch": "main", "commit": "e1549807066947818113a7d7ed48f637e49620d3" }, - "tokyonight.nvim": { "branch": "main", "commit": "b9b494fa7f7bbf2fe0747b47fa290fb7a4eddcc7" }, - "trouble.nvim": { "branch": "main", "commit": "a8264a65a0b894832ea642844f5b7c30112c458f" }, - "ts-comments.nvim": { "branch": "main", "commit": "8ea22850c40b4aef481a6ebdd74c928ed2b20427" }, - "venv-selector.nvim": { "branch": "main", "commit": "6a1b15eb35bbb827b6db428055087e2dbf32838f" }, - "vim-bazel": { "branch": "master", "commit": "31b0d5e4f51da1aeb56d65bf505a744e6de405de" }, - "vim-maktaba": { "branch": "master", "commit": "fe95bb10f6bb250943a44632107f6a3d76ce5f28" }, - "vim-tmux-navigator": { "branch": "master", "commit": "c600cf10db1bf933aab9e357158bf9b202ecf99b" }, - "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" }, - "yanky.nvim": { "branch": "main", "commit": "8756d19923ad871eb95f543a8a98c026b4a8494f" } -} \ No newline at end of file diff --git a/config/nvim/lazyvim.json b/config/nvim/lazyvim.json deleted file mode 100644 index 8724d88..0000000 --- a/config/nvim/lazyvim.json +++ /dev/null @@ -1,25 +0,0 @@ -{ - "extras": [ - "lazyvim.plugins.extras.coding.copilot", - "lazyvim.plugins.extras.coding.yanky", - "lazyvim.plugins.extras.editor.dial", - "lazyvim.plugins.extras.editor.harpoon2", - "lazyvim.plugins.extras.editor.mini-diff", - "lazyvim.plugins.extras.lang.ansible", - "lazyvim.plugins.extras.lang.docker", - "lazyvim.plugins.extras.lang.go", - "lazyvim.plugins.extras.lang.json", - "lazyvim.plugins.extras.lang.markdown", - "lazyvim.plugins.extras.lang.python", - "lazyvim.plugins.extras.lang.rust", - "lazyvim.plugins.extras.lang.terraform", - "lazyvim.plugins.extras.lang.typescript", - "lazyvim.plugins.extras.lang.yaml", - "lazyvim.plugins.extras.util.mini-hipatterns", - "lazyvim.plugins.extras.util.project" - ], - "news": { - "NEWS.md": "4964" - }, - "version": 4 -} \ No newline at end of file diff --git a/config/nvim/lua/config/autocmds.lua b/config/nvim/lua/config/autocmds.lua deleted file mode 100644 index 209fd98..0000000 --- a/config/nvim/lua/config/autocmds.lua +++ /dev/null @@ -1,26 +0,0 @@ --- Autocmds are automatically loaded on the VeryLazy event --- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua --- Add any additional autocmds here -vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, { - pattern = "Tiltfile", - command = "setfiletype bzl", -}) - -vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, { - pattern = "*.mdx", - command = "setfiletype markdown", -}) - -vim.api.nvim_create_autocmd({ "BufNewFile", "BufRead" }, { - pattern = "*.tilt", - command = "setfiletype bzl", -}) - --- Disable the concealing in some file formats --- The default conceallevel is 3 in LazyVim -vim.api.nvim_create_autocmd("FileType", { - pattern = { "json", "jsonc", "markdown" }, - callback = function() - vim.opt.conceallevel = 0 - end, -}) diff --git a/config/nvim/lua/config/keymaps.lua b/config/nvim/lua/config/keymaps.lua deleted file mode 100644 index 1b102dd..0000000 --- a/config/nvim/lua/config/keymaps.lua +++ /dev/null @@ -1,20 +0,0 @@ --- Keymaps are automatically loaded on the VeryLazy event --- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua --- Add any additional keymaps here - --- local discipline = require("marmos.discipline") --- --- discipline.cowboy() - --- Tmux -vim.keymap.set("n", "", " TmuxNavigateLeft", { silent = true, desc = "Navigate left" }) -vim.keymap.set("n", "", " TmuxNavigateRight", { silent = true, desc = "Navigate right" }) -vim.keymap.set("n", "", " TmuxNavigateDown", { silent = true, desc = "Navigate down" }) -vim.keymap.set("n", "", " TmuxNavigateUp", { silent = true, desc = "Navigate up" }) - --- Move lines up and down in visual mode -vim.keymap.set("v", "J", ":m '>+1gv=gv", { silent = true, desc = "Move line down" }) -vim.keymap.set("v", "K", ":m '<-2gv=gv", { silent = true, desc = "Move line up" }) - --- Harpoon -vim.keymap.set("n", "h", "") diff --git a/config/nvim/lua/config/lazy.lua b/config/nvim/lua/config/lazy.lua deleted file mode 100644 index fd269d7..0000000 --- a/config/nvim/lua/config/lazy.lua +++ /dev/null @@ -1,47 +0,0 @@ -local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" - -if not (vim.uv or vim.loop).fs_stat(lazypath) then - -- bootstrap lazy.nvim - -- stylua: ignore - vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", lazypath }) -end -vim.opt.rtp:prepend(vim.env.LAZY or lazypath) - -require("lazy").setup({ - spec = { - -- add LazyVim and import its plugins - { "LazyVim/LazyVim", import = "lazyvim.plugins" }, - -- import any extras modules here - -- { import = "lazyvim.plugins.extras.lang.typescript" }, - -- { import = "lazyvim.plugins.extras.lang.json" }, - -- { import = "lazyvim.plugins.extras.ui.mini-animate" }, - -- import/override with your plugins - { import = "plugins" }, - }, - defaults = { - -- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup. - -- If you know what you're doing, you can set this to `true` to have all your custom plugins lazy-loaded by default. - lazy = false, - -- It's recommended to leave version=false for now, since a lot the plugin that support versioning, - -- have outdated releases, which may break your Neovim install. - version = false, -- always use the latest git commit - -- version = "*", -- try installing the latest stable version for plugins that support semver - }, - install = { colorscheme = { "tokyonight", "habamax" } }, - checker = { enabled = true }, -- automatically check for plugin updates - performance = { - rtp = { - -- disable some rtp plugins - disabled_plugins = { - "gzip", - -- "matchit", - -- "matchparen", - -- "netrwPlugin", - "tarPlugin", - "tohtml", - "tutor", - "zipPlugin", - }, - }, - }, -}) diff --git a/config/nvim/lua/config/options.lua b/config/nvim/lua/config/options.lua deleted file mode 100644 index ce86039..0000000 --- a/config/nvim/lua/config/options.lua +++ /dev/null @@ -1,73 +0,0 @@ --- Options are automatically loaded before lazy.nvim startup --- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua --- Add any additional options here - --- Leader -vim.g.mapleader = " " - --- Encoding -vim.opt.encoding = "utf-8" -vim.opt.fileencoding = "utf-8" - --- General -vim.opt.showcmd = true -vim.opt.cmdheight = 1 -vim.opt.laststatus = 2 -vim.opt.expandtab = true -vim.opt.scrolloff = 10 -vim.opt.shell = "fish" -vim.opt.backupskip = { "/tmp/*", "/private/tmp/*" } -vim.opt.inccommand = "split" -vim.opt.ignorecase = true -- Case insensitive searching UNLESS /C or capital in search -vim.opt.smarttab = true -vim.opt.breakindent = true -vim.opt.shiftwidth = 2 -vim.opt.tabstop = 2 -vim.opt.wrap = false -- No Wrap lines -vim.opt.backspace = { "start", "eol", "indent" } -vim.opt.path:append({ "**" }) -- Finding files - Search down into subfolders -vim.opt.wildignore:append({ "*/node_modules/*" }) -vim.opt.splitbelow = true -- Put new windows below current -vim.opt.splitright = true -- Put new windows right of current -vim.opt.splitkeep = "cursor" - --- Line numbering -vim.opt.nu = true -vim.opt.relativenumber = true - -vim.o.termguicolors = true - --- Code folding -vim.o.foldcolumn = "1" -vim.o.foldlevel = 99 -vim.o.foldlevelstart = 99 -vim.o.foldenable = true -vim.o.fillchars = [[eob: ,fold: ,foldopen:,foldsep: ,foldclose:]] - --- Tabs -vim.opt.title = true -vim.opt.autoindent = true -vim.opt.smartindent = true -vim.opt.tabstop = 4 -vim.opt.softtabstop = 4 -vim.opt.shiftwidth = 4 -vim.opt.expandtab = true -vim.opt.smartindent = true - --- Editor -vim.opt.wrap = false - -vim.opt.hlsearch = false -vim.opt.incsearch = true - -vim.opt.termguicolors = true - -vim.opt.scrolloff = 8 -vim.opt.signcolumn = "yes" -vim.opt.isfname:append("@-@") - -vim.opt.updatetime = 50 - --- Undercurl -vim.cmd([[let &t_Cs = "\e[4:3m"]]) -vim.cmd([[let &t_Ce = "\e[4:0m"]]) diff --git a/config/nvim/lua/marmos/discipline.lua b/config/nvim/lua/marmos/discipline.lua deleted file mode 100644 index e94b43d..0000000 --- a/config/nvim/lua/marmos/discipline.lua +++ /dev/null @@ -1,43 +0,0 @@ -local M = {} - -function M.cowboy() - ---@type table? - local id - local ok = true - - for _, key in ipairs({ "h", "j", "k", "l", "+", "-" }) do - local count = 0 - local timer = assert(vim.loop.new_timer()) - local map = key - - vim.keymap.set("n", key, function() - if vim.v.count > 0 then - count = 0 - end - - if count >= 20 then - ok, id = pcall(vim.notify, "Hold it Cowbody!", vim.log.levels.WARN, { - icon = "🤠", - replace = id, - keep = function() - return count >= 10 - end, - }) - - if not ok then - id = nil - return map - end - else - count = count + 1 - timer:start(2000, 0, function() - count = 0 - end) - - return map - end - end, { expr = true, silent = true }) - end -end - -return M diff --git a/config/nvim/lua/plugins/bazel.lua b/config/nvim/lua/plugins/bazel.lua deleted file mode 100644 index acb39da..0000000 --- a/config/nvim/lua/plugins/bazel.lua +++ /dev/null @@ -1,6 +0,0 @@ -return { - { - "bazelbuild/vim-bazel", - dependencies = { "google/vim-maktaba" }, - }, -} diff --git a/config/nvim/lua/plugins/colorscheme.lua b/config/nvim/lua/plugins/colorscheme.lua deleted file mode 100644 index f10c9e4..0000000 --- a/config/nvim/lua/plugins/colorscheme.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - { - "LazyVim/LazyVim", - opts = { - colorscheme = "catppuccin", - }, - }, -} diff --git a/config/nvim/lua/plugins/completions.lua b/config/nvim/lua/plugins/completions.lua deleted file mode 100644 index 115e873..0000000 --- a/config/nvim/lua/plugins/completions.lua +++ /dev/null @@ -1,73 +0,0 @@ -return { - { - "L3MON4D3/LuaSnip", - keys = function() - return {} - end, - }, - { - "hrsh7th/nvim-cmp", - dependencies = { "alexander-born/cmp-bazel" }, - ---@param opts cmp.ConfigSchema - opts = function(_, opts) - local has_words_before = function() - unpack = unpack or table.unpack - local line, col = unpack(vim.api.nvim_win_get_cursor(0)) - return col ~= 0 - and vim.api.nvim_buf_get_lines(0, line - 1, line, true)[1]:sub(col, col):match("%s") == nil - end - - local luasnip = require("luasnip") - local cmp = require("cmp") - - opts.mapping = vim.tbl_extend("force", opts.mapping, { - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - -- You could replace select_next_item() with confirm({ select = true }) to get VS Code autocompletion behavior - cmp.select_next_item() - -- You could replace the expand_or_jumpable() calls with expand_or_locally_jumpable() - -- this way you will only jump inside the snippet region - elseif luasnip.expand_or_jumpable() then - luasnip.expand_or_jump() - elseif has_words_before() then - cmp.complete() - else - fallback() - end - end, { "i", "s" }), - [""] = cmp.mapping(function(fallback) - if cmp.visible() then - cmp.select_prev_item() - elseif luasnip.jumpable(-1) then - luasnip.jump(-1) - else - fallback() - end - end, { "i", "s" }), - [""] = cmp.mapping({ - i = function() - if cmp.visible() then - require("notify")("visible") - cmp.abort() - else - require("notify")("not visible") - cmp.complete() - end - end, - c = function() - if cmp.visible() then - require("notify")("visible") - cmp.close() - else - require("notify")("not visible") - cmp.complete() - end - end, - }), - }) - - table.insert(opts.sources, { name = "emoji" }) - table.insert(opts.sources, { name = "bazel" }) - end, - }, -} diff --git a/config/nvim/lua/plugins/dashboard.lua b/config/nvim/lua/plugins/dashboard.lua deleted file mode 100644 index 181ca05..0000000 --- a/config/nvim/lua/plugins/dashboard.lua +++ /dev/null @@ -1,70 +0,0 @@ -return { - { - "MaximilianLloyd/ascii.nvim", - }, - { - "nvimdev/dashboard-nvim", - event = "VimEnter", - opts = function() - local logo = require("ascii").art.text.neovim.sharp - - for _ = 0, 8 do - table.insert(logo, 1, [[ ]]) - end - - for _ = 0, 2 do - table.insert(logo, [[ ]]) - end - - local opts = { - theme = "doom", - hide = { - -- this is taken care of by lualine - -- enabling this messes up the actual laststatus setting after loading a file - statusline = false, - }, - config = { - header = logo, - -- stylua: ignore - center = { - { action = LazyVim.telescope("files"), desc = " Find File", icon = " ", key = "f" }, - { action = "ene | startinsert", desc = " New File", icon = " ", key = "n" }, - { action = "Telescope oldfiles", desc = " Recent Files", icon = " ", key = "r" }, - { action = "Telescope live_grep", desc = " Find Text", icon = " ", key = "g" }, - { action = [[lua LazyVim.telescope.config_files()()]], desc = " Config", icon = " ", key = "c" }, - { action = 'lua require("persistence").load()', desc = " Restore Session", icon = " ", key = "s" }, - { action = "LazyExtras", desc = " Lazy Extras", icon = " ", key = "x" }, - { action = "Lazy", desc = " Lazy", icon = "󰒲 ", key = "l" }, - { action = "qa", desc = " Quit", icon = " ", key = "q" }, - }, - footer = function() - local stats = require("lazy").stats() - local ms = (math.floor(stats.startuptime * 100 + 0.5) / 100) - - return { - "⚡ Neovim loaded " .. stats.loaded .. "/" .. stats.count .. " plugins in " .. ms .. "ms", - } - end, - }, - } - - for _, button in ipairs(opts.config.center) do - button.desc = button.desc .. string.rep(" ", 43 - #button.desc) - button.key_format = " %s" - end - - -- close Lazy and re-open when the dashboard is ready - if vim.o.filetype == "lazy" then - vim.cmd.close() - vim.api.nvim_create_autocmd("User", { - pattern = "DashboardLoaded", - callback = function() - require("lazy").show() - end, - }) - end - - return opts - end, - }, -} diff --git a/config/nvim/lua/plugins/disabled.lua b/config/nvim/lua/plugins/disabled.lua deleted file mode 100644 index 16668e5..0000000 --- a/config/nvim/lua/plugins/disabled.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - { - "lukas-reineke/headlines.nvim", - enable = false, - }, - { - "folke/flash.nvim", - enabled = false, - }, -} diff --git a/config/nvim/lua/plugins/git.lua b/config/nvim/lua/plugins/git.lua deleted file mode 100644 index f70490c..0000000 --- a/config/nvim/lua/plugins/git.lua +++ /dev/null @@ -1,9 +0,0 @@ -return { - { - "apzelos/blamer.nvim", - lazy = false, - init = function(_) - vim.g.blamer_enabled = 1 - end, - }, -} diff --git a/config/nvim/lua/plugins/headings.lua b/config/nvim/lua/plugins/headings.lua deleted file mode 100644 index cbb23c5..0000000 --- a/config/nvim/lua/plugins/headings.lua +++ /dev/null @@ -1,30 +0,0 @@ -return { - { - "lukas-reineke/headlines.nvim", - opts = function() - local opts = {} - for _, ft in ipairs({ "markdown", "norg", "rmd", "org" }) do - opts[ft] = { - headline_highlights = {}, - -- disable bullets for now. See https://github.com/lukas-reineke/headlines.nvim/issues/66 - bullets = {}, - fat_headline_lower_string = "▔", - } - for i = 1, 6 do - local hl = "Headline" .. i - vim.api.nvim_set_hl(0, hl, { link = "Headline", default = true }) - table.insert(opts[ft].headline_highlights, hl) - end - end - return opts - end, - ft = { "markdown", "norg", "rmd", "org" }, - config = function(_, opts) - -- PERF: schedule to prevent headlines slowing down opening a file - vim.schedule(function() - require("headlines").setup(opts) - require("headlines").refresh() - end) - end, - }, -} diff --git a/config/nvim/lua/plugins/lint.lua b/config/nvim/lua/plugins/lint.lua deleted file mode 100644 index 7355355..0000000 --- a/config/nvim/lua/plugins/lint.lua +++ /dev/null @@ -1,17 +0,0 @@ -return { - { - "mfussenegger/nvim-lint", - opts = { - linters = { - markdownlint = { - args = { - "--disable", - "MD013", - "MD007", - "--", -- Required - }, - }, - }, - }, - }, -} diff --git a/config/nvim/lua/plugins/lsp.lua b/config/nvim/lua/plugins/lsp.lua deleted file mode 100644 index 4c3a783..0000000 --- a/config/nvim/lua/plugins/lsp.lua +++ /dev/null @@ -1,21 +0,0 @@ -return { - { - "neovim/nvim-lspconfig", - opts = { - servers = { - eslint = {}, - }, - setup = { - eslint = function() - require("lazyvim.util").lsp.on_attach(function(client) - if client.name == "eslint" then - client.server_capabilities.documentFormattingProvider = true - elseif client.name == "tsserver" then - client.server_capabilities.documentFormattingProvider = false - end - end) - end, - }, - }, - }, -} diff --git a/config/nvim/lua/plugins/mason.lua b/config/nvim/lua/plugins/mason.lua deleted file mode 100644 index f1b5beb..0000000 --- a/config/nvim/lua/plugins/mason.lua +++ /dev/null @@ -1,30 +0,0 @@ -return { - { - "williamboman/mason.nvim", - opts = function(_, opts) - vim.list_extend(opts.ensure_installed, { - -- lua stuff - "lua-language-server", - "stylua", - - -- other stuff - "bash-language-server", - "beautysh", - "shellcheck", - "pylint", - "gopls", - "markdownlint", - "marksman", - "dprint", - "shfmt", - - -- webdev stuff - "css-lsp", - "eslint-lsp", - "html-lsp", - "prettierd", - "typescript-language-server", - }) - end, - }, -} diff --git a/config/nvim/lua/plugins/neo-tree.lua b/config/nvim/lua/plugins/neo-tree.lua deleted file mode 100644 index 6cb43a9..0000000 --- a/config/nvim/lua/plugins/neo-tree.lua +++ /dev/null @@ -1,14 +0,0 @@ -return { - { - "nvim-neo-tree/neo-tree.nvim", - keys = { - { - "", - function() - require("neo-tree.command").execute({ toggle = true, dir = LazyVim.root() }) - end, - desc = "Explorer NeoTree (Root Dir)", - }, - }, -- optional - }, -} diff --git a/config/nvim/lua/plugins/noice.lua b/config/nvim/lua/plugins/noice.lua deleted file mode 100644 index 5a12456..0000000 --- a/config/nvim/lua/plugins/noice.lua +++ /dev/null @@ -1,60 +0,0 @@ -return { - { - "folke/noice.nvim", - opts = function(_, opts) - table.insert(opts.routes, { - filter = { - event = "notify", - find = "No information available", - }, - opts = { skip = true }, - }) - local focused = true - vim.api.nvim_create_autocmd("FocusGained", { - callback = function() - focused = true - end, - }) - vim.api.nvim_create_autocmd("FocusLost", { - callback = function() - focused = false - end, - }) - table.insert(opts.routes, 1, { - filter = { - cond = function() - return not focused - end, - }, - view = "notify_send", - opts = { stop = false }, - }) - - opts.commands = { - all = { - -- options for the message history that you get with `:Noice` - view = "split", - opts = { enter = true, format = "details" }, - filter = {}, - }, - } - - vim.api.nvim_create_autocmd("FileType", { - pattern = "markdown", - callback = function(event) - vim.schedule(function() - require("noice.text.markdown").keys(event.buf) - end) - end, - }) - - opts.presets.lsp_doc_border = true - end, - }, - { - "rcarriga/nvim-notify", - opts = { - timeout = 5000, - }, - }, -} diff --git a/config/nvim/lua/plugins/refactor.lua b/config/nvim/lua/plugins/refactor.lua deleted file mode 100644 index 651e55b..0000000 --- a/config/nvim/lua/plugins/refactor.lua +++ /dev/null @@ -1,61 +0,0 @@ -return { - -- Incremental rename - { - "smjonas/inc-rename.nvim", - cmd = "IncRename", - config = true, - }, - { - "danymat/neogen", - keys = { - { - "cc", - function() - require("neogen").generate({}) - end, - desc = "Neogen Comment", - }, - }, - opts = { snippet_engine = "luasnip" }, - }, - { - "ThePrimeagen/refactoring.nvim", - keys = { - { - "r", - function() - require("refactoring").select_refactor({ - show_success_message = true, - }) - end, - mode = "v", - noremap = true, - silent = true, - expr = false, - }, - }, - opts = {}, - }, - -- Better increase/descrease - { - "monaqa/dial.nvim", - -- stylua: ignore - keys = { - { "", function() return require("dial.map").inc_normal() end, expr = true, desc = "Increment" }, - { "", function() return require("dial.map").dec_normal() end, expr = true, desc = "Decrement" }, - }, - config = function() - local augend = require("dial.augend") - require("dial.config").augends:register_group({ - default = { - augend.integer.alias.decimal, - augend.integer.alias.hex, - augend.date.alias["%Y/%m/%d"], - augend.constant.alias.bool, - augend.semver.alias.semver, - augend.constant.new({ elements = { "let", "const" } }), - }, - }) - end, - }, -} diff --git a/config/nvim/lua/plugins/symbols.lua b/config/nvim/lua/plugins/symbols.lua deleted file mode 100644 index adddb57..0000000 --- a/config/nvim/lua/plugins/symbols.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - { - "simrat39/symbols-outline.nvim", - keys = { { "cs", "SymbolsOutline", desc = "Symbols Outline" } }, - cmd = "SymbolsOutline", - opts = { - position = "right", - }, - }, -} diff --git a/config/nvim/lua/plugins/telescope.lua b/config/nvim/lua/plugins/telescope.lua deleted file mode 100644 index 73cb1e7..0000000 --- a/config/nvim/lua/plugins/telescope.lua +++ /dev/null @@ -1,17 +0,0 @@ -return { - "telescope.nvim", - dependencies = { - { - "nvim-telescope/telescope-live-grep-args.nvim", - event = "VeryLazy", - config = function(_, _) - require("lazyvim.util").on_load("telescope.nvim", function() - require("telescope").load_extension("live_grep_args") - end) - end, - keys = { - { "/", ":Telescope live_grep_args", desc = "Live Grep (Args)" }, - }, - }, - }, -} diff --git a/config/nvim/lua/plugins/tmux.lua b/config/nvim/lua/plugins/tmux.lua deleted file mode 100644 index 0a0855a..0000000 --- a/config/nvim/lua/plugins/tmux.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - { - "christoomey/vim-tmux-navigator", - }, -} diff --git a/config/nvim/lua/plugins/treesitter.lua b/config/nvim/lua/plugins/treesitter.lua deleted file mode 100644 index 9eabdc8..0000000 --- a/config/nvim/lua/plugins/treesitter.lua +++ /dev/null @@ -1,39 +0,0 @@ -return { - { - "nvim-treesitter/nvim-treesitter", - opts = { - ensure_installed = { - "lua", - "css", - "cpp", - "go", - "javascript", - "typescript", - "tsx", - "toml", - "json", - "rust", - "swift", - "markdown", - "markdown_inline", - }, - }, - autotag = { - enable = true, - }, - indent = { - enable = true, - }, - config = function(_, opts) - require("nvim-treesitter.configs").setup(opts) - - -- MDX - vim.filetype.add({ - extension = { - mdx = "mdx", - }, - }) - vim.treesitter.language.register("markdown", "mdx") - end, - }, -} diff --git a/config/nvim/stylua.toml b/config/nvim/stylua.toml deleted file mode 100644 index 36d1d66..0000000 --- a/config/nvim/stylua.toml +++ /dev/null @@ -1,4 +0,0 @@ -indent_type = "Spaces" -indent_width = 4 -column_width = 120 -