From 51667cb7f102708b049a57680d5a3b52cb7da1d1 Mon Sep 17 00:00:00 2001 From: Janis Hutz Date: Thu, 15 May 2025 15:16:30 +0200 Subject: [PATCH] [Nvim-COC] Remove --- nvim-coc/coc-settings.json | 27 -- nvim-coc/init.lua | 3 - nvim-coc/lua/keybinds.lua | 136 ------ nvim-coc/lua/lazy-conf.lua | 26 -- nvim-coc/lua/options.lua | 36 -- nvim-coc/lua/plugins/fm/nvim-tree.lua | 24 - nvim-coc/lua/plugins/fm/telescope.lua | 87 ---- nvim-coc/lua/plugins/lsp/coc.lua | 134 ------ nvim-coc/lua/plugins/lsp/fidget.lua | 14 - nvim-coc/lua/plugins/lsp/treesitter.lua | 29 -- nvim-coc/lua/plugins/style/bufferline.lua | 64 --- nvim-coc/lua/plugins/style/colorizer.lua | 34 -- nvim-coc/lua/plugins/style/colors.lua | 139 ------ nvim-coc/lua/plugins/style/dressing.lua | 5 - nvim-coc/lua/plugins/style/lualine.lua | 55 --- nvim-coc/lua/plugins/style/startup.lua | 77 ---- nvim-coc/lua/plugins/testing/dap.lua | 103 ----- nvim-coc/lua/plugins/testing/neotest.lua | 70 --- nvim-coc/lua/plugins/utility/autopairs.lua | 65 --- nvim-coc/lua/plugins/utility/bufdelete.lua | 9 - nvim-coc/lua/plugins/utility/comment-box.lua | 61 --- nvim-coc/lua/plugins/utility/comment.lua | 10 - nvim-coc/lua/plugins/utility/context.lua | 4 - nvim-coc/lua/plugins/utility/grammar.lua | 12 - .../lua/plugins/utility/indent-blankline.lua | 9 - nvim-coc/lua/plugins/utility/lastplace.lua | 7 - .../lua/plugins/utility/markdown-preview.lua | 17 - nvim-coc/lua/plugins/utility/multicursors.lua | 17 - nvim-coc/lua/plugins/utility/navbuddy.lua | 146 ------ nvim-coc/lua/plugins/utility/surround.lua | 8 - nvim-coc/lua/plugins/utility/toggleterm.lua | 17 - nvim-coc/lua/plugins/utility/vimtex.lua | 15 - nvim-coc/lua/plugins/utility/whichkey.lua | 12 - nvim-coc/lua/plugins/utility/zen-mode.lua | 14 - nvim-coc/lua/utils.lua | 55 --- nvim-coc/snippets/package.json | 30 -- nvim-coc/snippets/snippets/docSetup.json | 6 - nvim-coc/snippets/snippets/html.json | 45 -- nvim-coc/snippets/snippets/javascript.json | 93 ---- nvim-coc/snippets/snippets/tex.json | 420 ------------------ nvim-coc/snippets/snippets/typescript.json | 93 ---- nvim-coc/snippets/snippets/vue.json | 11 - nvim-coc/spell/en.utf-8.add | 4 - nvim-coc/spell/en.utf-8.add.spl | Bin 94 -> 0 bytes 44 files changed, 2243 deletions(-) delete mode 100644 nvim-coc/coc-settings.json delete mode 100755 nvim-coc/init.lua delete mode 100755 nvim-coc/lua/keybinds.lua delete mode 100755 nvim-coc/lua/lazy-conf.lua delete mode 100755 nvim-coc/lua/options.lua delete mode 100755 nvim-coc/lua/plugins/fm/nvim-tree.lua delete mode 100755 nvim-coc/lua/plugins/fm/telescope.lua delete mode 100755 nvim-coc/lua/plugins/lsp/coc.lua delete mode 100755 nvim-coc/lua/plugins/lsp/fidget.lua delete mode 100755 nvim-coc/lua/plugins/lsp/treesitter.lua delete mode 100755 nvim-coc/lua/plugins/style/bufferline.lua delete mode 100755 nvim-coc/lua/plugins/style/colorizer.lua delete mode 100755 nvim-coc/lua/plugins/style/colors.lua delete mode 100755 nvim-coc/lua/plugins/style/dressing.lua delete mode 100755 nvim-coc/lua/plugins/style/lualine.lua delete mode 100755 nvim-coc/lua/plugins/style/startup.lua delete mode 100755 nvim-coc/lua/plugins/testing/dap.lua delete mode 100755 nvim-coc/lua/plugins/testing/neotest.lua delete mode 100755 nvim-coc/lua/plugins/utility/autopairs.lua delete mode 100755 nvim-coc/lua/plugins/utility/bufdelete.lua delete mode 100755 nvim-coc/lua/plugins/utility/comment-box.lua delete mode 100755 nvim-coc/lua/plugins/utility/comment.lua delete mode 100755 nvim-coc/lua/plugins/utility/context.lua delete mode 100755 nvim-coc/lua/plugins/utility/grammar.lua delete mode 100755 nvim-coc/lua/plugins/utility/indent-blankline.lua delete mode 100755 nvim-coc/lua/plugins/utility/lastplace.lua delete mode 100755 nvim-coc/lua/plugins/utility/markdown-preview.lua delete mode 100755 nvim-coc/lua/plugins/utility/multicursors.lua delete mode 100755 nvim-coc/lua/plugins/utility/navbuddy.lua delete mode 100755 nvim-coc/lua/plugins/utility/surround.lua delete mode 100755 nvim-coc/lua/plugins/utility/toggleterm.lua delete mode 100755 nvim-coc/lua/plugins/utility/vimtex.lua delete mode 100755 nvim-coc/lua/plugins/utility/whichkey.lua delete mode 100755 nvim-coc/lua/plugins/utility/zen-mode.lua delete mode 100755 nvim-coc/lua/utils.lua delete mode 100644 nvim-coc/snippets/package.json delete mode 100755 nvim-coc/snippets/snippets/docSetup.json delete mode 100755 nvim-coc/snippets/snippets/html.json delete mode 100755 nvim-coc/snippets/snippets/javascript.json delete mode 100755 nvim-coc/snippets/snippets/tex.json delete mode 100755 nvim-coc/snippets/snippets/typescript.json delete mode 100755 nvim-coc/snippets/snippets/vue.json delete mode 100644 nvim-coc/spell/en.utf-8.add delete mode 100644 nvim-coc/spell/en.utf-8.add.spl diff --git a/nvim-coc/coc-settings.json b/nvim-coc/coc-settings.json deleted file mode 100644 index 5d1f0f8..0000000 --- a/nvim-coc/coc-settings.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "diagnostic.enable": true, - "diagnostic.virtualText": true, - "diagnostic.floatEnabled": true, - "python.pythonPath": "/usr/bin/python3", - "suggest.enable": true, - "suggest.autoTrigger": "always", - "suggest.minTriggerInputLength": 1, - "suggest.timeout": 500, - "suggest.noselect": false, - "suggest.border": "single", - "suggest.floatMaxHeight": 20, - "suggest.floatMaxWidth": 80, - "suggest.menuHeight": 10, - "suggest.padding": [0, 1], - "snippets.ultisnips.pythonPrompt": false, - "languageserver": { - "verilog": { - "command": "verible-verilog-ls", - "filetypes": ["verilog", "systemverilog"], - "rootPatterns": ["verible-verilog-ls"] - } - }, - "coc.preferences.enablePostfixCompletions": true, - "coc.source.buffer.enable": true, - "coc.source.file.enable": true -} diff --git a/nvim-coc/init.lua b/nvim-coc/init.lua deleted file mode 100755 index 466c22b..0000000 --- a/nvim-coc/init.lua +++ /dev/null @@ -1,3 +0,0 @@ -require("options") -require("keybinds") -require("lazy-conf") diff --git a/nvim-coc/lua/keybinds.lua b/nvim-coc/lua/keybinds.lua deleted file mode 100755 index a332c94..0000000 --- a/nvim-coc/lua/keybinds.lua +++ /dev/null @@ -1,136 +0,0 @@ -local opts = require("utils").opts - -local keymap = vim.keymap - --- write to file (sudo if readonly) -if vim.g.vscode then - keymap.set("n", "W", ":Write", opts("write file (vscode)")) -else - keymap.set("n", "W", ":w!", opts("write file")) - keymap.set("n", "W", ":lua require('utils').sudo_write()", opts("sudo write file")) -end - --- Handy VSCode Shortcuts --- Move lines up and down -vim.api.nvim_set_keymap('n', '', ':m .-2==', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('n', '', ':m .+1==', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('n', '', ':m .-2', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('n', '', ':m .+1', { noremap = true, silent = true }) - --- Move lines in insert mode -vim.api.nvim_set_keymap('i', '', ':m .-2i', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('i', '', ':m .+1i', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('i', '', ':m .-2i', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('i', '', ':m .+1i', { noremap = true, silent = true }) - --- Copy lines up and down in normal mode -vim.api.nvim_set_keymap('n', '', ':t .-1', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('n', '', ':t .-1', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('n', '', ':t .-1', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('n', '', ':t .', { noremap = true, silent = true }) - --- Copy lines up and down in insert mode -vim.api.nvim_set_keymap('i', '', ':t.-1i', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('i', '', ':t.i', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('i', '', ':t.-1i', { noremap = true, silent = true }) -vim.api.nvim_set_keymap('i', '', ':t.i', { noremap = true, silent = true }) - - --- Keep selection in visual mode when indenting -vim.api.nvim_set_keymap('v', '<', '', '>gv', { noremap = true, silent = true }) - - --- Save shortcut -keymap.set("i", "", ":wa", opts("Save file (shortcut)")) -keymap.set("n", "", ":w", opts("Save file (shortcut)")) - --- Save and quit (sudo and no sudo) -keymap.set("n", "E", ":wq!", opts("write and quit file")) -keymap.set("n", "E", ":lua require('utils').sudo_write():q!", opts("sudo write and quit file")) - --- Quite file -keymap.set("n", "Q", ":q!", opts("quit file")) - --- Duplicate line -keymap.set("n", "dd", ":t.", opts("Duplicate line")) - --- Editor focus -keymap.set("n", "", ":wincmd p", opts("Cycle focus")) - --- Key Mappings for LaTeX workflow -keymap.set('n', 'lc', ':VimtexCompile', opts("Compile latex document")) -- Compile LaTeX file -keymap.set('n', 'lv', ':VimtexView', opts("View compiled latex pdf")) -- View compiled PDF -keymap.set('n', 'lq', ':VimtexStop', opts("Stop Compiling document")) -- Stop compilation - --- Markdown-Preview -keymap.set('n', 'm', ':MarkdownPreview', opts("Preview Markdown document in browser")) -- Stop compilation - --- window navigation -keymap.set("n", "", "h", opts()) -keymap.set("n", "", "j", opts()) -keymap.set("n", "", "k", opts()) -keymap.set("n", "", "l", opts()) - --- window resize -keymap.set("n", "", ":vertical resize -2", opts()) -keymap.set("n", "", ":resize -2", opts()) -keymap.set("n", "", ":resize +2", opts()) -keymap.set("n", "", ":vertical resize +2", opts()) - --- nohlsearch -keymap.set("n", "h", ":nohlsearch", opts("remove search highlighting")) - --- run file -keymap.set("n", "r", ":!%:p", opts("run current file")) -keymap.set("n", "r", ":!%:p", opts("run current file with arguments")) - --- chmod +x -keymap.set("n", "m", ":!chmod +x %:p", opts("make current file executable")) - --- script setup -keymap.set("n", "#", ":set syntax=sh:w:!chmod +x %:p:LspStart bashlsi#!/bin/sh", opts("setup sh script")) -keymap.set("n", "#", ":set syntax=python:w:!chmod +x %:p:LspStart pyrighti#!/usr/bin/env python3", opts("setup python script")) - --- CTRL + Backspace -keymap.set("i", "", "", opts()) - --- select all -keymap.set("n", "a", "ggVG", opts("select all")) - --- move cursor in insert mode -keymap.set("i", "", "", opts()) -keymap.set("i", "", "", opts()) -keymap.set("i", "", "", opts()) -keymap.set("i", "", "", opts()) -keymap.set("i", "", "", opts("Jump back by word")) -keymap.set("i", "", "", opts("Jump back by word")) -keymap.set("i", "", "", opts("Jump to EOL")) -keymap.set("i", "", "", opts("Jump to beginning of line")) - --- open in neovide --- keymap.set("n", "n", ":!neovide --no-fork %:p", opts("open in neovide (wip)")) - --- deleting doesn't yank except when used with -keymap.set({ "n", "v" }, "d", '"_d', opts()) -keymap.set({ "n", "v" }, "D", '"_D', opts()) -keymap.set({ "n", "v" }, "x", '"_x', opts()) -keymap.set({ "n", "v" }, "X", '"_X', opts()) -keymap.set({ "n", "v" }, "c", '"_c', opts()) -keymap.set({ "n", "v" }, "C", '"_C', opts()) -keymap.set({ "n", "v" }, "d", "d", opts("yank and delete")) -keymap.set({ "n", "v" }, "D", "D", opts("YANK and DELETE to end")) - --- + yank/paste/delete uses system clipboard -keymap.set({ "n", "v" }, "y", '"+y', opts("yank to system clipboard")) -keymap.set({ "n", "v" }, "Y", '"+y$', opts("YANK to system clipboard")) -keymap.set({ "n", "v" }, "p", '"+p', opts("paste from system clipboard")) -keymap.set({ "n", "v" }, "P", '"+P', opts("PASTE from system clipboard")) -keymap.set({ "n", "v" }, "d", '"+d', opts("yank to system clipboard and delete")) -keymap.set({ "n", "v" }, "D", '"+D', opts("YANK to system clipboard and DELETE")) - -keymap.set("n", "wk", ":WhichKey", opts("Toggle WhichKey")) - - --- Toggle relative line numbers -keymap.set( 'n', '.', ':lua vim.wo.relativenumber = not vim.wo.relativenumber', opts( 'Toggle relative line numbers' )) diff --git a/nvim-coc/lua/lazy-conf.lua b/nvim-coc/lua/lazy-conf.lua deleted file mode 100755 index 8ed3666..0000000 --- a/nvim-coc/lua/lazy-conf.lua +++ /dev/null @@ -1,26 +0,0 @@ -local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" -if not vim.loop.fs_stat(lazypath) then - vim.fn.system({ - "git", - "clone", - "--filter=blob:none", - "https://github.com/folke/lazy.nvim.git", - "--branch=stable", -- latest stable release - lazypath, - }) -end -vim.opt.rtp:prepend(lazypath) - - -require("lazy").setup({ - spec = { - { import = "plugins.fm"}, - { import = "plugins.lsp" }, - { import = "plugins.style" }, - { import = "plugins.testing" }, - { import = "plugins.utility" } - }, - change_detection = { - notify = false, -- dont notify when plugins are changed - } -}) diff --git a/nvim-coc/lua/options.lua b/nvim-coc/lua/options.lua deleted file mode 100755 index 8b4f840..0000000 --- a/nvim-coc/lua/options.lua +++ /dev/null @@ -1,36 +0,0 @@ -vim.g.mapleader = " " -vim.g.maplocalleader = " " - -vim.opt.backspace = "2" - --- title -vim.opt.title = true -vim.opt.titlestring = "nvim - %f" - --- indentation -vim.opt.tabstop = 4 -vim.opt.shiftwidth = 4 -vim.opt.shiftround = true -vim.opt.expandtab = true -vim.opt.breakindent = true -vim.opt.linebreak = true - --- line numbers -vim.wo.number = true -vim.wo.cursorline = true -vim.wo.relativenumber = true -vim.opt.signcolumn = "yes" -- reserve space for diagnostics - --- search options -vim.opt.ignorecase = true -vim.opt.smartcase = true - --- swap and undo directories -vim.opt.undofile = true -vim.opt.undodir = vim.fn.expand("~/.cache/vim/undodir") -vim.opt.directory = vim.fn.expand("~/.cache/vim/swapfiles") - --- add hyprlang filetype -vim.filetype.add({ - pattern = { [".*/hypr.*%.conf"] = "hyprlang" }, -}) diff --git a/nvim-coc/lua/plugins/fm/nvim-tree.lua b/nvim-coc/lua/plugins/fm/nvim-tree.lua deleted file mode 100755 index 1fd5465..0000000 --- a/nvim-coc/lua/plugins/fm/nvim-tree.lua +++ /dev/null @@ -1,24 +0,0 @@ -return { - "nvim-tree/nvim-tree.lua", - version = "*", - lazy = false, - dependencies = { - "nvim-tree/nvim-web-devicons", - }, - config = function() - vim.g.loaded_netrw = 1 - vim.g.loaded_netrwPlugin = 1 - - require("nvim-tree").setup { - sort = { - folders_first = true, - sorter = "name" - }, - filters = { custom = { "^.git$" } } - } - - vim.keymap.set('n', 'e', ":NvimTreeToggle", {silent = true, desc = "Open nvim-tree"}) - vim.keymap.set('n', 'h', ":NvimTreeCollapseKeepBuffers", { silent = true, desc = "Collapse nvim-tree keeping open buffers" }) - vim.keymap.set('n', 'e', ":NvimTreeFindFile", {silent = true, desc = "Go to currently open file in buffer or close"}) - end, -} diff --git a/nvim-coc/lua/plugins/fm/telescope.lua b/nvim-coc/lua/plugins/fm/telescope.lua deleted file mode 100755 index f97ef17..0000000 --- a/nvim-coc/lua/plugins/fm/telescope.lua +++ /dev/null @@ -1,87 +0,0 @@ -local actions = require('telescope.actions') -local action_state = require('telescope.actions.state') - --- Custom function for search and replace using Telescope --- test -function _G.search_and_replace() - local current_file = vim.fn.expand('%:p') - local query = vim.fn.input('Enter search pattern: ') - - -- Create the Telescope prompt with custom mappings - require('telescope.builtin').find_files({ - prompt_title = 'Search and Replace', - cwd = vim.loop.cwd(), - hidden = true, - attach_mappings = function(prompt_bufnr, map) - actions.select_default:replace(function() - local selection = action_state.get_selected_entry() - - -- Get the replace pattern from user - local replace_query = vim.fn.input('Replace with: ', '') - - if not replace_query == '' then - local args = { query, replace_query } - - -- Open a terminal buffer to run the search and replace command - require('telescope.builtin').terminal_job({ - cmd = { - 'sh', '-c', - string.format( - "grep -rl '%s' . | xargs sed -i 's/%s/%s/g'", - table.concat(args, "'"), - query, - replace_query - ) - }, - cwd = vim.fn.expand('%:p:h'), - }) - end - - return true - end) - - return true - end - }) -end - -return { - -- fuzzy finder - "nvim-telescope/telescope.nvim", - dependencies = { - "nvim-lua/plenary.nvim", - }, - config = function() - local builtin = require("telescope.builtin") - local actions = require("telescope.actions") - local opts = { silent = true } - - require("telescope").setup({ - defaults = { - mappings = { - i = { - [""] = actions.move_selection_next, - [""] = actions.move_selection_previous, - [""] = actions.send_selected_to_qflist + actions.open_qflist, -- TODO investigate - }, - }, - }, - }) - - opts.desc = "telescope find files" - vim.keymap.set("n", "ff", builtin.find_files, opts) - - opts.desc = "telescope live grep" - vim.keymap.set("n", "fg", builtin.live_grep, opts) - - opts.desc = "telescope buffers" - vim.keymap.set("n", "fb", builtin.buffers, opts) - - opts.desc = "telescope nvim functions" - vim.keymap.set("n", "fh", builtin.help_tags, opts) - - - -- Search and replace - - end, -} diff --git a/nvim-coc/lua/plugins/lsp/coc.lua b/nvim-coc/lua/plugins/lsp/coc.lua deleted file mode 100755 index 8c7efd0..0000000 --- a/nvim-coc/lua/plugins/lsp/coc.lua +++ /dev/null @@ -1,134 +0,0 @@ -return { - "neoclide/coc.nvim", - branch = "release", - config = function() - -- Completion support and diagnostics - vim.cmd("set completeopt=menuone,noinsert,noselect") - - -- Diagnostics settings - vim.cmd("set updatetime=300") - vim.cmd('autocmd CursorHold * silent! CocAction("diagnosticRefresh")') - - -- Snippet support - vim.g.coc_user_snippets = vim.fn.expand("~/.config/nvim/snippets") - - -- Signature help (popup) - vim.cmd('autocmd CursorHold,CursorHoldI * silent! CocAction("showSignatureHelp")') - - -- Enable some coc extensions - vim.g.coc_global_extensions = { - "coc-snippets", -- Snippets support - "coc-pyright", -- Python LSP - "coc-tsserver", -- JavaScript/TypeScript LSP - "coc-json", -- JSON LSP - "coc-html", -- HTML LSP - "coc-css", -- CSS LSP - "coc-lua", -- Lua LSP - "coc-diagnostic", -- Diagnostics - "coc-syntax", -- Syntax highlighting - "coc-eslint", -- ESLint (null-ls replacement for JS/TS) - "coc-prettier", -- Prettier formatting - "coc-java", - } - - -------------- - -- KEYBINDS -- - -------------- - local keymap = vim.keymap - local opts = { noremap = true, silent = true, desc = "" } - vim.opt.signcolumn = 'yes' - - -- LSP actions - opts.desc = "Jump to previous diagnostics" - keymap.set("n", "[d", "(coc-diagnostic-prev)", opts) - - opts.desc = "Jump to next diagnostics" - keymap.set("n", "]d", "(coc-diagnostic-next)", opts) - - opts.desc = "Show LSP references" - keymap.set("n", "gR", "CocAction('editor.action.showReferences')", opts) - - opts.desc = "Go to declaration" - keymap.set("n", "gD", ":CocCommand editor.action.goToDeclaration", opts) - - opts.desc = "Show LSP definitions" - keymap.set("n", "gd", "CocAction('editor.action.goToDefinition')", opts) - - opts.desc = "Show LSP implementations" - keymap.set("n", "gi", "CocAction('editor.action.goToImplementation')", opts) - - opts.desc = "Show LSP type definitions" - keymap.set("n", "gt", "CocAction('editor.action.goToTypeDefinition')", opts) - - opts.desc = "See available code actions" - keymap.set({ "n", "v" }, "ca", "CocAction('editor.action.quickFix')", opts) - - opts.desc = "Format current file" - keymap.set("n", "gf", "CocCommand editor.action.formatDocument", opts) - - opts.desc = "Smart rename" - keymap.set("n", "n", "CocCommand editor.action.rename", opts) - - opts.desc = "Show buffer diagnostics" - keymap.set("n", "ga", "CocList diagnostics", opts) - - opts.desc = "Show line diagnostics" - keymap.set("n", "gA", "CocAction('diagnostic.showLineDiagnostics')", opts) - - opts.desc = "Go to previous diagnostic" - keymap.set("n", "[d", "CocAction('diagnostic.gotoPrev')", opts) - - opts.desc = "Go to next diagnostic" - keymap.set("n", "]d", "CocAction('diagnostic.gotoNext')", opts) - - opts.desc = "Show documentation for what is under cursor" - keymap.set("n", "k", "CocAction('editor.action.showHover')", opts) - - opts.desc = "Restart LSP" - keymap.set("n", "rs", "CocRestart", opts) - - -- CMP replacement - - -- Mapping for next suggestion - opts.desc = "Next suggestion" - vim.keymap.set("i", "", "coc#select_next()", opts) - - -- Mapping for previous suggestion - opts.desc = "Previous suggestion" - vim.keymap.set("i", "", "coc#select_prev()", opts) - - -- Mapping for scrolling documentation forward - opts.desc = "Scroll docs forward" - vim.keymap.set("i", "", "CocScrollFloat -4", opts) - - -- Mapping for scrolling documentation backward - opts.desc = "Scroll docs back" - vim.keymap.set("i", "", "CocScrollFloat 4", opts) - - -- Mapping to show completion suggestions - opts.desc = "Show completion suggestions" - vim.keymap.set("i", "", "=coc#refresh()", opts) - - -- Mapping for Tab key (with snippet expansion and fallback) - opts.desc = "Complete or expand snippet" - keymap.set('i', '', 'coc#pum#visible() ? coc#pum#next(1) : v:lua.check_back_space() ? "" : coc#refresh()', opts) - - -- Mapping for jumping to the next placeholder in snippets - opts.desc = "Jump to next placeholder in snippet" - vim.keymap.set("i", "", function() - if vim.fn["coc#snippets#jumpable"]() == 1 then - vim.fnkeys(vim.api.nvim_replace_termcodes("", true, true, true), "n") - end - end, opts) - - -- Mapping for jumping to the previous placeholder in snippets - opts.desc = "Jump to previous placeholder in snippet" - vim.keymap.set("i", "", function() - if vim.fn["coc#snippets#jumpable"]() == 1 then - vim.fn["coc#snippets#jump"](-1) - else - vim.fn.feedkeys(vim.api.nvim_replace_termcodes("", true, true, true), "n") - end - end, opts) - end, -} diff --git a/nvim-coc/lua/plugins/lsp/fidget.lua b/nvim-coc/lua/plugins/lsp/fidget.lua deleted file mode 100755 index 687be41..0000000 --- a/nvim-coc/lua/plugins/lsp/fidget.lua +++ /dev/null @@ -1,14 +0,0 @@ -return { - -- notifications && lsp progress msgs - "j-hui/fidget.nvim", - config = function() - require("fidget").setup({ - notification = { - window = { - winblend = 0, - } - } - }) - end - -} diff --git a/nvim-coc/lua/plugins/lsp/treesitter.lua b/nvim-coc/lua/plugins/lsp/treesitter.lua deleted file mode 100755 index 4434d03..0000000 --- a/nvim-coc/lua/plugins/lsp/treesitter.lua +++ /dev/null @@ -1,29 +0,0 @@ -return { - -- syntax highlighting - "nvim-treesitter/nvim-treesitter", - build = ":TSUpdate", - config = function() - require("nvim-treesitter.configs").setup({ - ensure_installed = { - "bash", - "c", - "cpp", - "hyprlang", - "java", - "javascript", - "json", - "lua", - "python", - "rust", - "typescript", - "verilog" - }, - sync_install = false, - - highlight = { - enable = true, - disable = { "tex" } - }, - }) - end, -} diff --git a/nvim-coc/lua/plugins/style/bufferline.lua b/nvim-coc/lua/plugins/style/bufferline.lua deleted file mode 100755 index b83dfa4..0000000 --- a/nvim-coc/lua/plugins/style/bufferline.lua +++ /dev/null @@ -1,64 +0,0 @@ -return { - -- tab line - "akinsho/bufferline.nvim", - version = "*", - dependencies = "nvim-tree/nvim-web-devicons", - config = function() - local bufferline = require("bufferline") - bufferline.setup({ - options = { - mode = "buffers", - show_buffer_close_icons = false, - middle_mouse_command = "bdelete! %d", - indicator = { style = "underline" }, - offsets = { - { - filetype = "NvimTree", - text = " ", - text_align = "center", - separator = true, - }, - }, - - separator_style = { " ", " " }, - diagnostics = "nvim_lsp", - diagnostics_indicator = function(count, level, diagnostics_dict, context) - local icon = level:match("error") and "󰅚 " or "󰀪 " - return icon .. count - end, - }, - }) - - local opts = { silent = true } - -- go to buffer - opts.desc = "go to buffer 1" - vim.keymap.set("n", "g1", "BufferLineGoToBuffer 1", opts) - opts.desc = "go to buffer 2" - vim.keymap.set("n", "g2", "BufferLineGoToBuffer 2", opts) - opts.desc = "go to buffer 3" - vim.keymap.set("n", "g3", "BufferLineGoToBuffer 3", opts) - opts.desc = "go to buffer 4" - vim.keymap.set("n", "g4", "BufferLineGoToBuffer 4", opts) - opts.desc = "go to buffer 5" - vim.keymap.set("n", "g5", "BufferLineGoToBuffer 5", opts) - opts.desc = "go to buffer 6" - vim.keymap.set("n", "g6", "BufferLineGoToBuffer 6", opts) - opts.desc = "go to buffer 7" - vim.keymap.set("n", "g7", "BufferLineGoToBuffer 7", opts) - opts.desc = "go to buffer 8" - vim.keymap.set("n", "g8", "BufferLineGoToBuffer 8", opts) - opts.desc = "go to buffer 9" - vim.keymap.set("n", "g9", "BufferLineGoToBuffer 9", opts) - opts.desc = "go to buffer 10" - vim.keymap.set("n", "g0", "BufferLineGoToBuffer 10", opts) - opts.desc = nil - -- cycle between buffers - vim.keymap.set("n", "J", "BufferLineCyclePrev", opts) - vim.keymap.set("n", "K", "BufferLineCycleNext", opts) - -- move buffers - vim.keymap.set("n", "", "BufferLineMovePrev", opts) - vim.keymap.set("n", "", "BufferLineMoveNext", opts) - -- go to previous buffer - vim.keymap.set({ "n", "i" }, "", "b#", opts) - end, -} diff --git a/nvim-coc/lua/plugins/style/colorizer.lua b/nvim-coc/lua/plugins/style/colorizer.lua deleted file mode 100755 index 41fa8a9..0000000 --- a/nvim-coc/lua/plugins/style/colorizer.lua +++ /dev/null @@ -1,34 +0,0 @@ -return { - -- colorizes colors in code - 'NvChad/nvim-colorizer.lua' , - --cmd = 'ColorizerToggle', - config = function () - require("colorizer").setup { - filetypes = { "*" }, - user_default_options = { - RGB = true, -- #RGB hex codes - #FCE - RRGGBB = true, -- #RRGGBB hex codes - #F5C2E7 - names = true, -- "Name" codes - lightpink - RRGGBBAA = true, -- #RRGGBBAA hex codes - #F5C2E7CC - AARRGGBB = true, -- 0xAARRGGBB hex codes - 0xCCF5C2E7 - rgb_fn = true, -- CSS rgb() and rgba() functions - rgba(245,194,231,0.8) - hsl_fn = true, -- CSS hsl() and hsla() functions - hsl(0.88,0.72,0.86) - css = true, -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB - css_fn = true, -- Enable all CSS *functions*: rgb_fn, hsl_fn - -- Available modes for `mode`: foreground, background, virtualtext - mode = "background", -- Set the display mode. - -- Available methods are false / true / "normal" / "lsp" / "both" - -- True is same as normal - tailwind = false, -- Enable tailwind colors - -- parsers can contain values used in |user_default_options| - sass = { enable = false, parsers = { "css" }, }, -- Enable sass colors - virtualtext = "■", - -- update color values even if buffer is not focused - -- example use: cmp_menu, cmp_docs - always_update = false - }, - -- all the sub-options of filetypes apply to buftypes - buftypes = {}, - } - end, -} diff --git a/nvim-coc/lua/plugins/style/colors.lua b/nvim-coc/lua/plugins/style/colors.lua deleted file mode 100755 index 73942fb..0000000 --- a/nvim-coc/lua/plugins/style/colors.lua +++ /dev/null @@ -1,139 +0,0 @@ -return { - -- color theme - "EdenEast/nightfox.nvim", - lazy = false, - priority = 1000, - config = function() - local Shade = require("nightfox.lib.shade") - require("nightfox").setup({ - options = { - transparent = true, - styles = { - comments = "italic", - functions = "italic", - keywords = "italic", - types = "italic", - } - }, - palettes = { - all = { - black = Shade.new("#404944", 0.15, -0.15), - gray = Shade.new("#505050", 0.15, -0.15), - white = Shade.new("#dee4df", 0.15, -0.15), - red = Shade.new("#ff6060", 0.15, -0.15), - darkred = Shade.new("#903030", 0.15, -0.15), - strongred = Shade.new("#bb0000", 0.15, -0.15), - orange = Shade.new("#ce8c14", 0.15, -0.15), - green = Shade.new("#a3d397", 0.10, -0.15), - darkgreen = Shade.new("#005602", 0.10, -0.15), - darkyellow = Shade.new("#dfd100", 0.10, -0.15), - yellow = Shade.new("#e3c46d", 0.15, -0.15), - darkblue = Shade.new("#1010aa", 0.15, -0.15), - blue = Shade.new("#7070dd", 0.15, -0.15), - magenta = Shade.new("#C02490", 0.30, -0.15), - pink = Shade.new("#ff82c2", 0.15, -0.15), - purple = Shade.new("#761464", 0.15, -0.15), - cyan = Shade.new("#7ac9ff", 0.15, -0.15), - lightblue = Shade.new("#5c77ff", 0.15, -0.15), - softblue = Shade.new("#10ddff", 0.15, -0.15), - brown = Shade.new("#553200", 0.15, -0.15), - - bg0 = "#0f1512", -- Dark bg (status line and float) - bg1 = "#0f1512", -- Default bg - bg2 = "#1b211e", -- Lighter bg (colorcolm folds) - bg3 = "#252b28", -- Lighter bg (cursor line) - bg4 = "#303633", -- Conceal, border fg - - fg0 = "#dee4df", -- Lighter fg - fg1 = "#dee4df", -- Default fg - fg2 = "#dee4df", -- Darker fg (status line) - fg3 = "#89938d", -- Darker fg (line numbers, fold colums) - - sel0 = "#404944", -- Popup bg, visual selection - sel1 = "#00513b", -- Popup sel bg, search bg - - comment = "#89938d", - }, - }, - specs = { - carbonfox = { - syntax = { - comment = "comment", - bracket = "darkyellow", - builtin0 = "softblue", - builtin1 = "sel0", - builtin2 = "sel1", - conditional = "darkblue", - const = "gray", - dep = "darkred", - field = "green", - func = "pink", - ident = "darkgreen", - keyword = "blue", - number = "yellow", - operator = "white", - preproc = "strongred", - regex = "purple", - statement = "magenta", - string = "cyan", - type = "red", - variable = "orange" - }, - diag = { - error = "darkred", - warn = "yellow", - info = "lightblue", - hint = "fg3", - ok = "darkgreen", - }, - diag_bg = { - error = "red", - warn = "#a16b00", - info = "cyan", - hint = "bg3", - ok = "green"; - }, - diff = { - add = "darkgreen", - delete = "darkred", - changed = "lightblue", - text = "fg0" - }, - git = { - add = "darkgreen", - removed = "darkred", - changed = "lightblue", - conflict = "orange", - ignored = "gray" - } - } - }, - groups = { - all = { - Cursor = { fg = "palette.white", bg = "palette.lightblue" }, -- character under the cursor - WinSeparator = { fg = "palette.bg2" }, -- the column separating vertically split windows - EndOfBuffer = { link = "WinSeparator" }, -- filler lines (~) after the end of the buffer. By default, this is highlighted like |hl-NonText|. - CursorLine = { bg = "palette.bg1" }, - CursorLineNr = { fg = "palette.cyan", style = "bold" }, -- Like LineNr when 'cursorline' or 'relativenumber' is set for the cursor line. - Search = { fg = "palette.lightblue", bg = "#00513b" }, -- Last search pattern highlighting (see 'hlsearch'). Also used for similar items that need to stand out. - IncSearch = { fg = "palette.lightblue", bg = "#1a6b51" }, -- 'incsearch' highlighting; also used for the text replaced with ":s///c" - ModeMsg = { fg = "palette.fg3", style = "bold" }, -- 'showmode' message (e.g., "-- INSERT --") - - NvimTreeRootFolder = { fg = "palette.lightblue", style = "bold" }, - NvimTreeFolderName = { fg = "palette.lightblue" }, - NvimTreeFolderIcon = { fg = "palette.lightblue" }, - NvimTreeOpenedFolderName = { fg = "palette.lightblue" }, - NvimTreeSymlinkFolderName = { fg = "palette.magenta" }, - - NvimTreeExecFile = { fg = "palette.red" }, - NvimTreeImageFile = { fg = "palette.white" }, - NvimTreeSpecialFile = { fg = "palette.yellow" }, - NvimTreeSymlink = { fg = "palette.magenta" }, - }, - }, - }) - if not vim.g.vscode then - vim.cmd([[colorscheme carbonfox]]) - end - end, -} diff --git a/nvim-coc/lua/plugins/style/dressing.lua b/nvim-coc/lua/plugins/style/dressing.lua deleted file mode 100755 index ff47990..0000000 --- a/nvim-coc/lua/plugins/style/dressing.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - -- prettier prompts - 'stevearc/dressing.nvim', - event = 'VeryLazy', -} diff --git a/nvim-coc/lua/plugins/style/lualine.lua b/nvim-coc/lua/plugins/style/lualine.lua deleted file mode 100755 index cd6a112..0000000 --- a/nvim-coc/lua/plugins/style/lualine.lua +++ /dev/null @@ -1,55 +0,0 @@ -return { - -- status line - 'nvim-lualine/lualine.nvim', - dependencies = { 'nvim-tree/nvim-web-devicons' }, - config = function() - local function getWords() - local wc = vim.api.nvim_eval("wordcount()") - if wc["visual_words"] then - return wc["visual_words"] - else - return wc["words"] - end - end - require('lualine').setup { - options = { - icons_enabled = true, - theme = "auto", - component_separators = { left = '', right = ''}, - section_separators = { left = '', right = ''}, - disabled_filetypes = { - statusline = {}, - winbar = {}, - }, - ignore_focus = { 'NvimTree' }, - always_divide_middle = true, - globalstatus = false, - refresh = { - statusline = 1000, - tabline = 1000, - winbar = 1000, - } - }, - sections = { - lualine_a = { { 'mode', separator = { left = '', right = '' }, } }, - lualine_b = {'branch', 'diff', 'diagnostics'}, - lualine_c = {'filename'}, - lualine_x = { getWords, 'encoding', 'fileformat', 'filetype'}, - lualine_y = { { 'progress', left_padding=0 } }, - lualine_z = { { 'location', separator = { left = '', right = '' }, padding=0} } - }, - inactive_sections = { - lualine_a = {}, - lualine_b = {}, - lualine_c = {'filename'}, - lualine_x = {'location'}, - lualine_y = {}, - lualine_z = {} - }, - tabline = {}, - winbar = {}, - inactive_winbar = {}, - extensions = {} - } - end, -} diff --git a/nvim-coc/lua/plugins/style/startup.lua b/nvim-coc/lua/plugins/style/startup.lua deleted file mode 100755 index ebb7a51..0000000 --- a/nvim-coc/lua/plugins/style/startup.lua +++ /dev/null @@ -1,77 +0,0 @@ -return { - "startup-nvim/startup.nvim", - dependencies = { - "nvim-telescope/telescope.nvim", - "nvim-lua/plenary.nvim", - "nvim-telescope/telescope-file-browser.nvim", - }, - config = function() - require("startup").setup({ - title = { - type = "text", - align = "center", - content = { - [[]], - [[]], - [[]], - [[ ]], - [[ ██████ █████ █████ █████ ███ ]], - [[ ░░██████ ░░███ ░░███ ░░███ ░░░ ]], - [[ ░███░███ ░███ ██████ ██████ ░███ ░███ ████ █████████████ ]], - [[ ░███░░███░███ ███░░███ ███░░███ ░███ ░███ ░░███ ░░███░░███░░███ ]], - [[ ░███ ░░██████ ░███████ ░███ ░███ ░░███ ███ ░███ ░███ ░███ ░███ ]], - [[ ░███ ░░█████ ░███░░░ ░███ ░███ ░░░█████░ ░███ ░███ ░███ ░███ ]], - [[ █████ ░░█████░░██████ ░░██████ ░░███ █████ █████░███ █████ ]], - [[ ░░░░░ ░░░░░ ░░░░░░ ░░░░░░ ░░░ ░░░░░ ░░░░░ ░░░ ░░░░░ ]], - [[ ]], -}, - highlight = "String", - default_color = "#010155" - }, - - quotes = { - type = "text", - align = "center", - content = function () - local handle = io.popen("pwd") - if handle then - local cwd = handle:read("*l") - handle:close() - return {"Currently in " .. cwd} - else - return {"Error running command"} - end - end, - highlight = "String", - default_color = "#FFFFFF" - }, - - old = { - type = "oldfiles", - oldfiles_directory = true, - align = "center", - title = "Old files", - oldfiles_amount = 10, - highlight = "String", - default_color = "#FFFFFF", - content = "", - }, - - options = { - mapping_keys = false; - }, - - colors = { - background = "#000000", - folded_section = "#100000" - }, - - mappings = { - execute_command = "", - open_file = "", - }, - - parts = {"title", "quotes", "old"} - }) - end, -} diff --git a/nvim-coc/lua/plugins/testing/dap.lua b/nvim-coc/lua/plugins/testing/dap.lua deleted file mode 100755 index e00b0ed..0000000 --- a/nvim-coc/lua/plugins/testing/dap.lua +++ /dev/null @@ -1,103 +0,0 @@ -return { - "mfussenegger/nvim-dap", - dependencies = { - { "nvim-neotest/nvim-nio" }, - { "rcarriga/nvim-dap-ui" }, - { "theHamsta/nvim-dap-virtual-text" }, - { "nvim-telescope/telescope-dap.nvim" }, - }, - -- stylua: ignore - keys = { - { "bR", function() require("dap").run_to_cursor() end, desc = "Run to Cursor", }, - { "bE", function() require("dapui").eval(vim.fn.input "[Expression] > ") end, desc = "Evaluate Input", }, - { "bC", function() require("dap").set_breakpoint(vim.fn.input "[Condition] > ") end, desc = "Conditional Breakpoint", }, - { "bU", function() require("dapui").toggle() end, desc = "Toggle UI", }, - { "bb", function() require("dap").step_back() end, desc = "Step Back", }, - { "bc", function() require("dap").continue() end, desc = "Continue", }, - { "bd", function() require("dap").disconnect() end, desc = "Disconnect", }, - { "be", function() require("dapui").eval() end, desc = "Evaluate", }, - { "bg", function() require("dap").session() end, desc = "Get Session", }, - { "bh", function() require("dap.ui.widgets").hover() end, desc = "Hover Variables", }, - { "bS", function() require("dap.ui.widgets").scopes() end, desc = "Scopes", }, - { "bi", function() require("dap").step_into() end, desc = "Step Into", }, - { "bo", function() require("dap").step_over() end, desc = "Step Over", }, - { "bp", function() require("dap").pause.toggle() end, desc = "Pause", }, - { "bq", function() require("dap").close() end, desc = "Quit", }, - { "br", function() require("dap").repl.toggle() end, desc = "Toggle REPL", }, - { "bs", function() require("dap").continue() end, desc = "Start", }, - { "bt", function() require("dap").toggle_breakpoint() end, desc = "Toggle Breakpoint", }, - { "bx", function() require("dap").terminate() end, desc = "Terminate", }, - { "bu", function() require("dap").step_out() end, desc = "Step Out", }, - }, - config = function() - require("nvim-dap-virtual-text").setup({ - commented = true, - }) - - local dap, dapui = require("dap"), require("dapui") - dapui.setup({}) - - dap.listeners.after.event_initialized["dapui_config"] = function() - dapui.open() - end - dap.listeners.before.event_terminated["dapui_config"] = function() - dapui.close() - end - dap.listeners.before.event_exited["dapui_config"] = function() - dapui.close() - end - - vim.fn.sign_define("DapBreakpoint", { text = "●", texthl = "DapBreakpoint", linehl = "", numhl = ""}) - vim.fn.sign_define("DapBreakpointCondition", { text = "●", texthl = "DapBreakpointCondition", linehl = "", numhl = ""}) - vim.fn.sign_define("DapLogPoint", { text = "◆", texthl = "DapLogPoint", linehl = "", numhl = ""}) - vim.fn.sign_define('DapStopped', { text='', texthl='DapStopped', linehl='DapStopped', numhl= 'DapStopped' }) - - dap.configurations.python = { - { - type = "python", - request = "launch", - name = "Launch file", - - -- Options below are for debugpy, see https://github.com/microsoft/debugpy/wiki/Debug-configuration-settings for supported options - - program = "${file}", -- This configuration will launch the current file if used. - pythonPath = function() - local cwd = vim.fn.getcwd() - if vim.fn.executable(cwd .. "/venv/bin/python") == 1 then - return cwd .. "/venv/bin/python" - elseif vim.fn.executable(cwd .. "/.venv/bin/python") == 1 then - return cwd .. "/.venv/bin/python" - else - return "/usr/bin/python" - end - end, - }, - } - - dap.adapters.python = function(cb, config) - if config.request == "attach" then - ---@diagnostic disable-next-line: undefined-field - local port = (config.connect or config).port - ---@diagnostic disable-next-line: undefined-field - local host = (config.connect or config).host or "127.0.0.1" - cb({ - type = "server", - port = assert(port, "`connect.port` is required for a python `attach` configuration"), - host = host, - options = { - source_filetype = "python", - }, - }) - else - cb({ - type = "executable", - command = vim.fn.stdpath("data") .. '/mason/packages/debugpy/venv/bin/python', - args = { "-m", "debugpy.adapter" }, - options = { - source_filetype = "python", - }, - }) - end - end - end, -} diff --git a/nvim-coc/lua/plugins/testing/neotest.lua b/nvim-coc/lua/plugins/testing/neotest.lua deleted file mode 100755 index e5907ea..0000000 --- a/nvim-coc/lua/plugins/testing/neotest.lua +++ /dev/null @@ -1,70 +0,0 @@ --- plugins/neotest_config.lua -return { - -- Load neotest - { - "nvim-neotest/neotest", - dependencies = { - -- For JavaScript, TypeScript (Vite) - "marilari88/neotest-vitest", - -- For Python - "nvim-neotest/neotest-python", - -- For C, C++, Rust - "orjangj/neotest-ctest", - "rouge8/neotest-rust", - }, - config = function() - local neotest = require("neotest") - local keymap = vim.keymap.set - - -- General setup for neotest - neotest.setup({ - adapters = { - -- Vite Adapter for JavaScript/TypeScript - require("neotest-vitest"), - -- Python Adapter - require("neotest-python"), - -- C/C++ Adapter - require("neotest-ctest"), - -- Rust Adapter - require("neotest-rust"), - }, - }) - - -- Keybinding Setup - local opts = { noremap = true, silent = true } - - -- Run nearest test - opts.desc = "Run nearest test" - keymap("n", "tr", 'lua require("neotest").run.run()', opts) - - -- Run all tests in the current file - opts.desc = "Run all tests in current file" - keymap("n", "tf", 'lua require("neotest").run.run(vim.fn.expand("%"))', opts) - - -- Run all tests in the entire project - opts.desc = "Run all tests in project" - keymap("n", "ta", "Neotest run", opts) - - -- Stop running tests - opts.desc = "Stop tests" - keymap("n", "ts", "Neotest stop", opts) - - opts.desc = "Jump to next test" - keymap("n", "tn", "Neotest jump next", opts) - - opts.desc = "Jump to previous test" - keymap("n", "tp", "Neotest jump prev", opts) - - -- Show test summary - opts.desc = "Show neotest test summary" - keymap("n", "tv", "Neotest summary", opts) - - -- Toggle the Neotest panel - opts.desc = "Show neotest output" - keymap("n", "to", "Neotest output", opts) - - opts.desc = "Show neotest output as panel" - keymap("n", "tn", "Neotest output-panel", opts) - end, - }, -} diff --git a/nvim-coc/lua/plugins/utility/autopairs.lua b/nvim-coc/lua/plugins/utility/autopairs.lua deleted file mode 100755 index 194ca3b..0000000 --- a/nvim-coc/lua/plugins/utility/autopairs.lua +++ /dev/null @@ -1,65 +0,0 @@ -return { - -- autoclose brackets and quotes - "windwp/nvim-autopairs", - event = "InsertEnter", - config = function() - require("nvim-autopairs").setup({ - fast_wrap = { - map = "", - chars = { "{", "[", "(", '"', "'", "`" }, - }, - }) - - -- add spaces between parentheses - local npairs = require("nvim-autopairs") - local Rule = require("nvim-autopairs.rule") - local cond = require("nvim-autopairs.conds") - - local brackets = { { "(", ")" }, { "[", "]" }, { "{", "}" } } - npairs.add_rules({ - -- Rule for a pair with left-side ' ' and right side ' ' - Rule(" ", " ") - -- Pair will only occur if the conditional function returns true - :with_pair(function(opts) - -- We are checking if we are inserting a space in (), [], or {} - local pair = opts.line:sub(opts.col - 1, opts.col) - return vim.tbl_contains({ - brackets[1][1] .. brackets[1][2], - brackets[2][1] .. brackets[2][2], - brackets[3][1] .. brackets[3][2], - }, pair) - end) - :with_move(cond.none()) - :with_cr(cond.none()) - -- We only want to delete the pair of spaces when the cursor is as such: ( | ) - :with_del( - function(opts) - local col = vim.api.nvim_win_get_cursor(0)[2] - local context = opts.line:sub(col - 1, col + 2) - return vim.tbl_contains({ - brackets[1][1] .. " " .. brackets[1][2], - brackets[2][1] .. " " .. brackets[2][2], - brackets[3][1] .. " " .. brackets[3][2], - }, context) - end - ), - }) - -- For each pair of brackets we will add another rule - for _, bracket in pairs(brackets) do - npairs.add_rules({ - -- Each of these rules is for a pair with left-side '( ' and right-side ' )' for each bracket type - Rule(bracket[1] .. " ", " " .. bracket[2]) - :with_pair(cond.none()) - :with_move(function(opts) - return opts.char == bracket[2] - end) - :with_del(cond.none()) - :use_key(bracket[2]) - -- Removes the trailing whitespace that can occur without this - :replace_map_cr(function(_) - return "2xiO" - end), - }) - end - end, -} diff --git a/nvim-coc/lua/plugins/utility/bufdelete.lua b/nvim-coc/lua/plugins/utility/bufdelete.lua deleted file mode 100755 index 2e25db7..0000000 --- a/nvim-coc/lua/plugins/utility/bufdelete.lua +++ /dev/null @@ -1,9 +0,0 @@ -return { - -- delete a buffer - 'famiu/bufdelete.nvim', - config = function() - local map = vim.api.nvim_set_keymap - map('n', '', 'Bdelete', { silent = true, desc = "close current buffer" }) - end -} - diff --git a/nvim-coc/lua/plugins/utility/comment-box.lua b/nvim-coc/lua/plugins/utility/comment-box.lua deleted file mode 100755 index f4e2be7..0000000 --- a/nvim-coc/lua/plugins/utility/comment-box.lua +++ /dev/null @@ -1,61 +0,0 @@ -return { - "LudoPinelli/comment-box.nvim", - config = function() - -- add custom commentstring to plugin source, since configuration is not yet supported - local function insertlang(lang, commentstring) - local filename = os.getenv("HOME") - .. "/.local/share/nvim/lazy/comment-box.nvim/lua/comment-box/commentstrings.lua" - local file = io.open(filename, "r") - if not file then - return - end - - local content = file:read("a") - if string.match(content, lang) then - return - end - - local lines = {} - for line in content:gmatch("[^\r\n]+") do - table.insert(lines, line) - end - file:close() - - table.insert(lines, 24, " " .. lang .. ' = { "' .. commentstring .. '", "" },') - - file = io.open(filename, "w") - if not file then - return - end - - file:write(table.concat(lines, "\n")) - - file:close() - end - - insertlang("hyprlang", "#%s") - - require("comment-box").setup({ - comment_style = "line", - doc_width = 70, - box_width = 50, - line_width = 70, - }) - - local opts = { silent = true } - - opts.desc = "comment text box" - vim.keymap.set({"n", "v"}, "cb", ":CBccbox", opts) - opts.desc = "comment text line" - vim.keymap.set({"n", "v"}, "cl", ":CBllline", opts) - opts.desc = "comment line" - vim.keymap.set({"n", "v"}, "ce", ":CBline", opts) - opts.desc = "comment highlight" - vim.keymap.set({"n", "v"}, "ch", ":CBlcbox18", opts) - - opts.desc = "delete comment box" - vim.keymap.set({"n", "v"}, "cd", ":CBd", opts) - opts.desc = "yank comment box contents" - vim.keymap.set({"n", "v"}, "cy", ":CBy", opts) - end, -} diff --git a/nvim-coc/lua/plugins/utility/comment.lua b/nvim-coc/lua/plugins/utility/comment.lua deleted file mode 100755 index 86e9525..0000000 --- a/nvim-coc/lua/plugins/utility/comment.lua +++ /dev/null @@ -1,10 +0,0 @@ -return { - -- add comment keybinds - 'numToStr/Comment.nvim', - opts = {}, - lazy = false, - config = function() - require('Comment').setup() - require('Comment.ft').set('hyprlang', '#%s') - end -} diff --git a/nvim-coc/lua/plugins/utility/context.lua b/nvim-coc/lua/plugins/utility/context.lua deleted file mode 100755 index d68fc02..0000000 --- a/nvim-coc/lua/plugins/utility/context.lua +++ /dev/null @@ -1,4 +0,0 @@ -return { - -- similar to sticky scroll in vscode - "nvim-treesitter/nvim-treesitter-context", -} diff --git a/nvim-coc/lua/plugins/utility/grammar.lua b/nvim-coc/lua/plugins/utility/grammar.lua deleted file mode 100755 index 7f8613f..0000000 --- a/nvim-coc/lua/plugins/utility/grammar.lua +++ /dev/null @@ -1,12 +0,0 @@ -return { - "kikofmas/grammarous.nvim", - config = function () - local keymap = vim.keymap - local opts = require('utils').opts - - keymap.set('n', 'sl', ':GrammarousCheck', opts('LanguageTool Spell Checker')) - keymap.set('n', 'sc', ':GrammarousCheck --comments-only', opts('LanguageTool Spell Checker, only comments')) - keymap.set('n', 'ss', ':set spell', opts('Start built-in spell checker')) - keymap.set('n', 'sn', ':set nospell', opts('Stop spell checker')) - end -} diff --git a/nvim-coc/lua/plugins/utility/indent-blankline.lua b/nvim-coc/lua/plugins/utility/indent-blankline.lua deleted file mode 100755 index 294d311..0000000 --- a/nvim-coc/lua/plugins/utility/indent-blankline.lua +++ /dev/null @@ -1,9 +0,0 @@ -return { - -- indent lines - 'lukas-reineke/indent-blankline.nvim', - opts = {}, - main = 'ibl', - config = function() - require('ibl').setup() - end -} diff --git a/nvim-coc/lua/plugins/utility/lastplace.lua b/nvim-coc/lua/plugins/utility/lastplace.lua deleted file mode 100755 index 2cacfe2..0000000 --- a/nvim-coc/lua/plugins/utility/lastplace.lua +++ /dev/null @@ -1,7 +0,0 @@ -return { - -- open file at previous position - 'ethanholz/nvim-lastplace', - config = function() - require('nvim-lastplace').setup{} - end, -} diff --git a/nvim-coc/lua/plugins/utility/markdown-preview.lua b/nvim-coc/lua/plugins/utility/markdown-preview.lua deleted file mode 100755 index f59ab53..0000000 --- a/nvim-coc/lua/plugins/utility/markdown-preview.lua +++ /dev/null @@ -1,17 +0,0 @@ -return { - -- literally the name, previews md in browser - "iamcco/markdown-preview.nvim", - cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, - ft = { "markdown" }, - build = function(plugin) - if vim.fn.executable "npx" then - vim.cmd("!cd " .. plugin.dir .. " && cd app && npx --yes yarn install") - else - vim.cmd [[Lazy load markdown-preview.nvim]] - vim.fn["mkdp#util#install"]() - end - end, - init = function() - if vim.fn.executable "npx" then vim.g.mkdp_filetypes = { "markdown" } end - end, -} diff --git a/nvim-coc/lua/plugins/utility/multicursors.lua b/nvim-coc/lua/plugins/utility/multicursors.lua deleted file mode 100755 index 3e7cadc..0000000 --- a/nvim-coc/lua/plugins/utility/multicursors.lua +++ /dev/null @@ -1,17 +0,0 @@ -return { - "smoka7/multicursors.nvim", - event = "VeryLazy", - dependencies = { - 'nvimtools/hydra.nvim', - }, - opts = {}, - cmd = { 'MCstart', 'MCvisual', 'MCclear', 'MCpattern', 'MCvisualPattern', 'MCunderCursor' }, - keys = { - { - mode = { 'v', 'n' }, - 'c', - 'MCstart', - desc = 'Create a selection for selected text or word under the cursor', - }, - }, -} diff --git a/nvim-coc/lua/plugins/utility/navbuddy.lua b/nvim-coc/lua/plugins/utility/navbuddy.lua deleted file mode 100755 index 74f3818..0000000 --- a/nvim-coc/lua/plugins/utility/navbuddy.lua +++ /dev/null @@ -1,146 +0,0 @@ -return { - "SmiteshP/nvim-navbuddy", - dependencies = { - "SmiteshP/nvim-navic", - "MunifTanjim/nui.nvim", - }, - opts = { lsp = { auto_attach = true } }, - config = function() - local actions = require("nvim-navbuddy.actions") - require("nvim-navbuddy").setup({ - window = { - border = "rounded", -- "rounded", "double", "solid", "none" - -- or an array with eight chars building up the border in a clockwise fashion - -- starting with the top-left corner. eg: { "╔", "═" ,"╗", "║", "╝", "═", "╚", "║" }. - size = "60%", -- Or table format example: { height = "40%", width = "100%"} - position = "50%", -- Or table format example: { row = "100%", col = "0%"} - scrolloff = nil, -- scrolloff value within navbuddy window - sections = { - left = { - size = "20%", - border = nil, -- You can set border style for each section individually as well. - }, - mid = { - size = "40%", - border = nil, - }, - right = { - -- No size option for right most section. It fills to - -- remaining area. - border = nil, - preview = "leaf", -- Right section can show previews too. - -- Options: "leaf", "always" or "never" - }, - }, - }, - node_markers = { - enabled = true, - icons = { - leaf = " ", - leaf_selected = " → ", - branch = " ", - }, - }, - icons = { - File = "󰈙 ", - Module = " ", - Namespace = "󰌗 ", - Package = " ", - Class = "󰌗 ", - Method = "󰆧 ", - Property = " ", - Field = " ", - Constructor = " ", - Enum = "󰕘", - Interface = "󰕘", - Function = "󰊕 ", - Variable = "󰆧 ", - Constant = "󰏿 ", - String = " ", - Number = "󰎠 ", - Boolean = "◩ ", - Array = "󰅪 ", - Object = "󰅩 ", - Key = "󰌋 ", - Null = "󰟢 ", - EnumMember = " ", - Struct = "󰌗 ", - Event = " ", - Operator = "󰆕 ", - TypeParameter = "󰊄 ", - }, - use_default_mappings = true, -- If set to false, only mappings set - -- by user are set. Else default - -- mappings are used for keys - -- that are not set by user - mappings = { - [""] = actions.close(), -- Close and cursor to original location - ["q"] = actions.close(), - - ["j"] = actions.next_sibling(), -- down - ["k"] = actions.previous_sibling(), -- up - - ["h"] = actions.parent(), -- Move to left panel - ["l"] = actions.children(), -- Move to right panel - ["0"] = actions.root(), -- Move to first panel - - [""] = actions.visual_name(), -- Visual selection of name - [""] = actions.visual_scope(), -- Visual selection of scope - - ["y"] = actions.yank_name(), -- Yank the name to system clipboard "+ - ["Y"] = actions.yank_scope(), -- Yank the scope to system clipboard "+ - - ["i"] = actions.insert_name(), -- Insert at start of name - ["I"] = actions.insert_scope(), -- Insert at start of scope - - ["a"] = actions.append_name(), -- Insert at end of name - ["A"] = actions.append_scope(), -- Insert at end of scope - - ["r"] = actions.rename(), -- Rename currently focused symbol - - ["d"] = actions.delete(), -- Delete scope - - ["f"] = actions.fold_create(), -- Create fold of current scope - ["F"] = actions.fold_delete(), -- Delete fold of current scope - - ["c"] = actions.comment(), -- Comment out current scope - - [""] = actions.select(), -- Goto selected symbol - ["o"] = actions.select(), - - ["J"] = actions.move_down(), -- Move focused node down - ["K"] = actions.move_up(), -- Move focused node up - - ["s"] = actions.toggle_preview(), -- Show preview of current node - - [""] = actions.vsplit(), -- Open selected node in a vertical split - [""] = actions.hsplit(), -- Open selected node in a horizontal split - - ["t"] = actions.telescope({ -- Fuzzy finder at current level. - layout_config = { -- All options that can be - height = 0.60, -- passed to telescope.nvim's - width = 0.60, -- default can be passed here. - prompt_position = "top", - preview_width = 0.50, - }, - layout_strategy = "horizontal", - }), - - ["g?"] = actions.help(), -- Open mappings help window - }, - lsp = { - auto_attach = true, -- If set to true, you don't need to manually use attach function - preference = nil, -- list of lsp server names in order of preference - }, - source_buffer = { - follow_node = true, -- Keep the current node in focus on the source buffer - highlight = true, -- Highlight the currently focused node - reorient = "smart", -- "smart", "top", "mid" or "none" - scrolloff = nil, -- scrolloff value when navbuddy is open - }, - custom_hl_group = nil, -- "Visual" or any other hl group to use instead of inverted colors - }) - - vim.keymap.set("n", "n", ":Navbuddy", { silent = true, desc = "open navbuddy menu" }) - end, -} diff --git a/nvim-coc/lua/plugins/utility/surround.lua b/nvim-coc/lua/plugins/utility/surround.lua deleted file mode 100755 index d4078fd..0000000 --- a/nvim-coc/lua/plugins/utility/surround.lua +++ /dev/null @@ -1,8 +0,0 @@ -return { - "kylechui/nvim-surround", - version = "*", - event = "VeryLazy", - config = function() - require("nvim-surround").setup() - end -} diff --git a/nvim-coc/lua/plugins/utility/toggleterm.lua b/nvim-coc/lua/plugins/utility/toggleterm.lua deleted file mode 100755 index e5d6478..0000000 --- a/nvim-coc/lua/plugins/utility/toggleterm.lua +++ /dev/null @@ -1,17 +0,0 @@ -return { - -- literally the name, quick term toggle - "akinsho/toggleterm.nvim", - version = "*", - config = function() - require("toggleterm").setup({ - insert_mappings = false, - terminal_mappings = false, - open_mapping = "t", - direction = "float", - float_opts = { - border = "curved", - }, - }) - vim.keymap.set("t", "", [[ToggleTerm]], {}) -- close terminal wih esc - end, -} diff --git a/nvim-coc/lua/plugins/utility/vimtex.lua b/nvim-coc/lua/plugins/utility/vimtex.lua deleted file mode 100755 index cb59ac3..0000000 --- a/nvim-coc/lua/plugins/utility/vimtex.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - "lervag/vimtex", - config = function() - -- vimtex settings - -- vim.g.vimtex_view_method = 'startup' -- PDF viewer (example: zathura, or use 'skim' for macOS) - vim.g.vimtex_compiler_method = 'latexmk' -- Use latexmk for compilation - vim.g.vimtex_fold_enabled = 1 -- Enable folding for LaTeX sections - vim.g.vimtex_quickfix_mode = 0 -- Disable quickfix mode for compilation errors - -- Key Mappings for LaTeX workflow - vim.api.nvim_set_keymap('n', 'lc', ':VimtexCompile', {}) -- Compile LaTeX file - vim.api.nvim_set_keymap('n', 'lv', ':VimtexView', {}) -- View compiled PDF - vim.api.nvim_set_keymap('n', 'lq', ':VimtexStop', {}) -- Stop compilation - - end -} diff --git a/nvim-coc/lua/plugins/utility/whichkey.lua b/nvim-coc/lua/plugins/utility/whichkey.lua deleted file mode 100755 index 0b2f878..0000000 --- a/nvim-coc/lua/plugins/utility/whichkey.lua +++ /dev/null @@ -1,12 +0,0 @@ -return { - -- keybinds popup - "folke/which-key.nvim", - event = "VeryLazy", - init = function() - vim.o.timeout = true - vim.o.timeoutlen = 500 - end, - opts = { - - } -} diff --git a/nvim-coc/lua/plugins/utility/zen-mode.lua b/nvim-coc/lua/plugins/utility/zen-mode.lua deleted file mode 100755 index 6f6be9e..0000000 --- a/nvim-coc/lua/plugins/utility/zen-mode.lua +++ /dev/null @@ -1,14 +0,0 @@ -return { - -- view buffer w/o distractions - "folke/zen-mode.nvim", - config = function() - require("zen-mode").setup({ - window = { - width = 1, - height = 1, - }, - }) - - vim.keymap.set("n", "z", ":ZenMode", { silent = true, desc = "open current buffer in zen mode" }) - end, -} diff --git a/nvim-coc/lua/utils.lua b/nvim-coc/lua/utils.lua deleted file mode 100755 index 16a32fd..0000000 --- a/nvim-coc/lua/utils.lua +++ /dev/null @@ -1,55 +0,0 @@ --- taken from https://github.com/ibhagwan/nvim-lua - -local M = {} - -M.opts = function(desc) - if desc then - return { silent = true, desc = desc} - else - return { silent = true } - end -end - -M.sudo_exec = function(cmd, print_output) - vim.fn.inputsave() - local password = vim.fn.inputsecret("Password: ") - vim.fn.inputrestore() - if not password or #password == 0 then - print("Invalid password, sudo aborted") - return false - end - local out = vim.fn.system(string.format("sudo -p '' -S %s", cmd), password) - if vim.v.shell_error ~= 0 then - print("\r\n") - print(out) - return false - end - if print_output then print("\r\n", out) end - return true -end - -M.sudo_write = function(tmpfile, filepath) - if not tmpfile then tmpfile = vim.fn.tempname() end - if not filepath then filepath = vim.fn.expand("%") end - if not filepath or #filepath == 0 then - print("E32: No file name") - return - end - -- `bs=1048576` is equivalent to `bs=1M` for GNU dd or `bs=1m` for BSD dd - -- Both `bs=1M` and `bs=1m` are non-POSIX - local cmd = string.format("dd if=%s of=%s bs=1048576", - vim.fn.shellescape(tmpfile), - vim.fn.shellescape(filepath)) - -- no need to check error as this fails the entire function - vim.api.nvim_exec(string.format("write! %s", tmpfile), true) - if M.sudo_exec(cmd) then - -- refreshes the buffer and prints the "written" message - vim.cmd.checktime() - -- exit command mode - vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes( - "", true, false, true), "n", true) - end - vim.fn.delete(tmpfile) -end - -return M diff --git a/nvim-coc/snippets/package.json b/nvim-coc/snippets/package.json deleted file mode 100644 index a9aaf4e..0000000 --- a/nvim-coc/snippets/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "janishutz-snippets", - "engines": { - "vscode": "^1.11.0" - }, - "contributes": { - "snippets": [ - { - "language": "all", - "path": "./snippets/docSetup.json" - }, - { - "language": "tex", - "path": "./snippets/tex.json" - }, - { - "language": "javascript", - "path": "./snippets/javascript.json" - }, - { - "language": "typescript", - "path": "./snippets/typescript.json" - }, - { - "language": "vue", - "path": "./snippets/vue.json" - } - ] - } -} diff --git a/nvim-coc/snippets/snippets/docSetup.json b/nvim-coc/snippets/snippets/docSetup.json deleted file mode 100755 index d79bcaa..0000000 --- a/nvim-coc/snippets/snippets/docSetup.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "docTitle": { - "prefix": "prepareDoc", - "body": "$BLOCK_COMMENT_START\n*\t\t\t\t$WORKSPACE_NAME - $TM_FILENAME\n*\n*\tCreated by Janis Hutz $CURRENT_MONTH/$CURRENT_DATE/$CURRENT_YEAR, Licensed under ${1|the GPL V3,the MIT,a proprietary,the BSD,the LGPL V3,the Apache|} License\n*\t\t\thttps://janishutz.com, development@janishutz.com\n*\n*\n$BLOCK_COMMENT_END" - } -} \ No newline at end of file diff --git a/nvim-coc/snippets/snippets/html.json b/nvim-coc/snippets/snippets/html.json deleted file mode 100755 index 1d2e582..0000000 --- a/nvim-coc/snippets/snippets/html.json +++ /dev/null @@ -1,45 +0,0 @@ -{ - "impress": { - "prefix": "impress", - "body": [ - "", - "", - "\t\n\t\t$1\n\t\t\n\t", - "\t", - "\t\t
\n\t\t\t

Your browser doesn't support the features required by impress.js, so you are presented with a simplified version of this presentation.

\n\t\t\t

For the best experience please use the latest Chrome, Safari or Firefox browser.

\n\t\t
", - "\t\t
", - "\t\t\t
\n\t\t\t\t
", - "\t\t\t\t\t

$2

\n\t\t\t\t
", - "\t\t\t
\n\t\t
", - "\n\t\t\n\t", - "" - ] - }, - "impress-step": { - "prefix": "impressStep", - "body": [ - "\n
", - "\t
", - "\t\t

$2

\n\t
", - "
\n" - ] - }, - "html-basic": { - "prefix": "basic", - "body": [ - "", - "", - "\t\n\t\t$1\n\t\t\n\t\t\n\t\t\n\t", - "\t\n\t\t

$3

", - "\t\n" - ] - }, - "impress-notes": { - "prefix": "impressNotes", - "body": "
\n\t$1\n
" - }, - "impress-substep": { - "prefix": "impressSubstep", - "body": "
\n\t$1\n
" - } -} \ No newline at end of file diff --git a/nvim-coc/snippets/snippets/javascript.json b/nvim-coc/snippets/snippets/javascript.json deleted file mode 100755 index a6e0759..0000000 --- a/nvim-coc/snippets/snippets/javascript.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "JS-Class": { - "prefix": "jsSetupClass", - "body": "class $1 { \n\tconstructor () {} \n\n \t$2 () {\n\t$3\n\t}\n}", - "description": "Setup the basic structure of a class in JS" - }, - "ExpressJS": { - "prefix": "jsExpressSetup", - "body": [ - "const express = require( 'express' );", - "let app = express();", - "const path = require( 'path' );", - "const expressSession = require( 'express-session' );", - "const fs = require( 'fs' );", - "const bodyParser = require( 'body-parser' );", - "const cookieParser = require( 'cookie-parser' )", - "const favicon = require( 'serve-favicon' );", - "\napp.use( expressSession ( {\n\tsecret: $1,\n\tresave: true,\n\tsaveUninitialized: true\n} ) );", - "app.use( bodyParser.urlencoded( { extended: false } ) );", - "app.use( bodyParser.json() );", - "app.use( cookieParser() );", - "app.use( favicon( path.join( __dirname + '$2' ) ) );\n", - "app.use( ( request, response, next ) => {\n\tresponse.sendFile( path.join( __dirname + '$3' ) ) \n} );", - "\n\napp.get( '/', ( request, response ) => {\n$4\n} );", - "\n\nconst PORT = process.env.PORT || 8080;", - "http.createServer( app ).listen( PORT );" - ] - }, - "ExpressJS-Route": { - "prefix": "jsEjsRoute", - "body": "\n\napp.get( '$1', ( request, response ) => {\n$4\n} );" - }, - "JSAsync": { - "prefix": "jsAsync", - "body": "(async () => {\n$1\n} ) ();" - }, - "JSpromiseReturnFunc": { - "prefix": "jsPromise", - "body": "function $1 () {\n\treturn new Promise( ( resolve, reject ) => {\n\t$2\n\t} );\n}" - }, - "fetch from other url": { - "prefix": "remoteURL", - "body": [ - "localStorage.getItem( 'url' ) + '/$1'" - ], - "description": "remote URL fetching (get from base address from local storage)" - }, - "fetch post": { - "prefix": "fetchPost", - "body": [ - "const fetchOptions = {", - "\tmethod: 'post',", - "\tbody: JSON.stringify( $1 ),", - "\tcredentials: 'include',", - "\theaders: {", - "\t\t'Content-Type': 'application/json',", - "\t\t'charset': 'utf-8'", - "\t}", - "};", - "fetch( $2, fetchOptions ).then( res => {", - "\tif ( res.status === 200 ) {", - "\t\tres.json().then( json => {", - "\t\t\t$3", - "\t\t} );", - "\t}", - "} );", - "$4" - ], - "description": "POST request using fetch" - }, - "fetch get": { - "prefix": "fetchGet", - "body": [ - "fetch( $2, { credentials: 'include' } ).then( res => {", - "\tif ( res.status === 200 ) {", - "\t\tres.json().then( json => {", - "\t\t\t$3", - "\t\t} );", - "\t}", - "} );", - "$4" - ], - "description": "POST request using fetch" - }, - "promise": { - "prefix": "promise", - "body": [ - "return new Promise( ( resolve, reject ) => {", - "\t", - "} );" - ] - } -} \ No newline at end of file diff --git a/nvim-coc/snippets/snippets/tex.json b/nvim-coc/snippets/snippets/tex.json deleted file mode 100755 index b4aeb28..0000000 --- a/nvim-coc/snippets/snippets/tex.json +++ /dev/null @@ -1,420 +0,0 @@ -{ - "prepare LaTeX Document": { - "prefix": "latex-prepare", - "body": [ - "\\documentclass{article}\n", - "\\newcommand{\\dir}{~/projects/latex} % IMPORTANT: No trailing slashes!", - "\\input{\\dir/include.tex}", - "\\load{recommended}\n", - "\\setup{$1}\n", - "\\begin{document}", - "\\startDocument", - "\\usetcolorboxes", - "$2\n\n", - "\\end{document}" - ], - "description": "Prepares a full LaTeX Document for use and compiling" - }, - "Fancy table": { - "prefix": "table", - "body": [ - "\\begin{tables}{$1}{$2}\n", - "\t$3\\\\", - "\\end{tables}" - ], - "description": "Insert a table (without environment)" - }, - "Formula": { - "prefix": "formula", - "body": [ - "\\begin{formula}[]{$1}", - "\t$2", - "\\end{formula}" - ], - "description": "Inserts a tcolorbox to provide a formula (red)" - }, - "Definition": { - "prefix": "definition", - "body": [ - "\\begin{definition}[]{$1}", - "\t$2", - "\\end{definition}" - ], - "description": "Inserts a tcolorbox to provide a definition (blue)" - }, - "Recall": { - "prefix": "recall", - "body": [ - "\\begin{recall}[]{$1}", - "\t$2", - "\\end{recall}" - ], - "description": "Inserts a tcolorbox to provide a recall / revision of previous knowledge (yellow)" - }, - "Important Remarks": { - "prefix": "remarks", - "body": [ - "\\begin{remarks}[]{$1}", - "\t$2", - "\\end{remarks}" - ], - "description": "Inserts a tcolorbox to provide remarks (green)" - }, - "Guides": { - "prefix": "guides", - "body": [ - "\\begin{guides}[]{$1}{${2:Usage}}", - "\t$2", - "\\end{guides}" - ], - "description": "Inserts a tcolorbox to provide guides / instructions on how to use (red)" - }, - "Properties": { - "prefix": "properties", - "body": [ - "\\begin{properties}[]{$1}", - "\t$2", - "\\end{properties}" - ], - "description": "Inserts a tcolorbox to inform about properties" - }, - "Restrictions": { - "prefix": "restrictions", - "body": [ - "\\begin{restrictions}[]{$1}", - "\t$2", - "\\end{restrictions}" - ], - "description": "Inserts a tcolorbox to inform about restrictions" - }, - "Limitations": { - "prefix": "limitations", - "body": [ - "\\begin{limitations}[]{$1}", - "\t$2", - "\\end{limitations}" - ], - "description": "Inserts a tcolorbox to inform about limitations" - }, - "Theorem": { - "prefix": "theorem", - "body": [ - "\\begin{theorem}[]{$1}", - "\t$2", - "\\end{theorem}" - ], - "description": "Inserts a tcolorbox to inform about theorems" - }, - "Lemma": { - "prefix": "lemma", - "body": [ - "\\begin{lemma}[]{$1}", - "\t$2", - "\\end{lemma}" - ], - "description": "Inserts a tcolorbox to inform about lemmas" - }, - "Corollary": { - "prefix": "corollary", - "body": [ - "\\begin{corollary}[]{$1}", - "\t$2", - "\\end{corollary}" - ], - "description": "Inserts a tcolorbox to inform about corollaries" - }, - "Proposition": { - "prefix": "proposition", - "body": [ - "\\begin{proposition}[]{$1}", - "\t$2", - "\\end{proposition}" - ], - "description": "Inserts a tcolorbox to inform about propositions" - }, - "Fact": { - "prefix": "fact", - "body": [ - "\\begin{fact}[]{$1}", - "\t$2", - "\\end{fact}" - ], - "description": "Inserts a tcolorbox to inform about facts" - }, - "Terms": { - "prefix": "terms", - "body": [ - "\\begin{terms}[]{$1}", - "\t$2", - "\\end{terms}" - ], - "description": "Inserts a tcolorbox to inform about terms" - }, - "Proof": { - "prefix": "proof", - "body": [ - "\\begin{proof}[]{$1}", - "\t$2", - "\\end{proof}" - ], - "description": "Inserts a tcolorbox to show a proof" - }, - "Axiom": { - "prefix": "axiom", - "body": [ - "\\begin{axiom}[]{$1}", - "\t$2", - "\\end{axiom}" - ], - "description": "Inserts a tcolorbox to show an axiom" - }, - "Notation": { - "prefix": "notation", - "body": [ - "\\begin{notation}[]{$1}", - "\t$2", - "\\end{notation}" - ], - "description": "Inserts a tcolorbox to show notation" - }, - "Example": { - "prefix": "example", - "body": [ - "\\begin{example}[]{$1}", - "\t$2", - "\\end{example}" - ], - "description": "Inserts a tcolorbox to show example" - }, - "Task": { - "prefix": "task", - "body": [ - "\\begin{task}[]{$1}", - "\t$2", - "\\end{task}" - ], - "description": "Inserts a tcolorbox to show example" - }, - "Usage": { - "prefix": "usage", - "body": [ - "\\begin{usage}[]{$1}", - "\t$2", - "\\end{usage}" - ], - "description": "Inserts a tcolorbox to inform about usage" - }, - "Conjugation": { - "prefix": "conjugation", - "body": [ - "\\begin{conjugation}[]{$1}", - "\t$2", - "\\end{conjugation}" - ], - "description": "Inserts a tcolorbox to inform about conjugation" - }, - "Forms": { - "prefix": "forms", - "body": [ - "\\begin{forms}[]{$1}", - "\t$2", - "\\end{forms}" - ], - "description": "Inserts a tcolorbox to inform about forms of e.g. grammatical structures" - }, - "General-Tcolorbox": { - "prefix": "general-tcb", - "body": [ - "\\begin{general}[]{${1:title}}{${2:second title}}{${3|red,green,blue,cyan,magenta,yellow,black,gray,white,darkgray,lightgray,brown,lime,olive,orange,pink,purple,teal,violet|}}", - "\t$4", - "\\end{general}" - ], - "description": "Inserts a tcolorbox for general purposes. First bracket is title, second one is second title, third one colour" - }, - "Derivative": { - "prefix": "derivative", - "body": [ - "\\frac{\\mbox{d}}{\\mbox{d}x}$1" - ] - }, - "Example (inline)": { - "prefix": "example-inline", - "body": [ - "\\inlineex" - ] - }, - "Example (short)": { - "prefix": "example-short", - "body": [ - "\\shortex" - ] - }, - "Definition (inline)": { - "prefix": "definition-inline", - "body": [ - "\\inlinedef" - ] - }, - "Definition (short)": { - "prefix": "definition-short", - "body": [ - "\\shortdef" - ] - }, - "Theorem (inline)": { - "prefix": "theorem-inline", - "body": [ - "\\inlinetheorem" - ] - }, - "Theorem (short)": { - "prefix": "theorem-short", - "body": [ - "\\shorttheorem" - ] - }, - "Lemma (inline)": { - "prefix": "lemma-inline", - "body": [ - "\\inlinelemma" - ] - }, - "Lemma (short)": { - "prefix": "lemma-short", - "body": [ - "\\shortlemma" - ] - }, - "Corollary (inline)": { - "prefix": "corollary-inline", - "body": [ - "\\inlinecorollary" - ] - }, - "Corollary (short)": { - "prefix": "corollary-short", - "body": [ - "\\shortcorollary" - ] - }, - "Proposition (inline)": { - "prefix": "proposition-inline", - "body": [ - "\\inlineproposition" - ] - }, - "Proposition (short)": { - "prefix": "proposition-short", - "body": [ - "\\shortproposition" - ] - }, - "Fact (inline)": { - "prefix": "fact-inline", - "body": [ - "\\inlinefact" - ] - }, - "Fact (short)": { - "prefix": "fact-short", - "body": [ - "\\shortfact" - ] - }, - "Axiom (inline)": { - "prefix": "axiom-inline", - "body": [ - "\\inlineaxiom" - ] - }, - "Axiom (short)": { - "prefix": "axiom-short", - "body": [ - "\\shortaxiom" - ] - }, - "Proof (inline)": { - "prefix": "proof-inline", - "body": [ - "\\inlineproof" - ] - }, - "Proof (short)": { - "prefix": "proof-short", - "body": [ - "\\shortproof" - ] - }, - "bold": { - "prefix": "#bold", - "body": [ - "\\textbf{$1}" - ] - }, - "italic": { - "prefix": "#i", - "body": [ - "\\textit{$1}" - ] - }, - "bolditalic": { - "prefix": "#bi", - "body": [ - "\\textbf{\\textit{$1}}" - ] - }, - "underlinie": { - "prefix": "#u", - "body": [ - "\\underbar{$1}" - ] - }, - "algebra": { - "prefix": "algebra", - "body": [ - "\\langle $1 \\rangle" - ] - }, - "fill-width": { - "prefix": "#fill", - "body": [ - "\\hspace{\\fill}$1" - ] - }, - "Latex-Colour": { - "prefix": "colour", - "body": [ - "${1|red,green,blue,cyan,magenta,yellow,black,gray,white,darkgray,lightgray,brown,lime,olive,orange,pink,purple,teal,violet|}" - ] - }, - "Latex-Text-Colour": { - "prefix": "colour-text", - "body": [ - "\\color{${1|red,green,blue,cyan,magenta,yellow,black,gray,white,darkgray,lightgray,brown,lime,olive,orange,pink,purple,teal,violet|}}" - ] - }, - "Set Language": { - "prefix": "setLang", - "body": [ - "\\setLang{$1}" - ] - }, - "Letter": { - "prefix": "latex-letter", - "body": [ - "\\documentclass[12pt,a4paper]{scrlttr2}\n", - "\\newcommand{\\dir}{~/projects/latex} % IMPORTANT: No trailing slashes!", - "\\input{\\dir/include.tex}", - "\\load{letter}\n", - "% Subject", - "\\setkomavar{subject}{$1}", - "\\begin{document}\\raggedright", - "\t\\begin{letter}{Company \\\\\\ Name \\\\\\ Address \\\\\\ CH-Place}", - "\t\t\\opening{Intro}\n", - "\t\t$2\n", - "\t\t\\closing{Kind regards}", - "\t\\end{letter}", - "\\end{document}" - ] - } -} diff --git a/nvim-coc/snippets/snippets/typescript.json b/nvim-coc/snippets/snippets/typescript.json deleted file mode 100755 index 2b83a66..0000000 --- a/nvim-coc/snippets/snippets/typescript.json +++ /dev/null @@ -1,93 +0,0 @@ -{ - "JS-Class": { - "prefix": "jsSetupClass", - "body": "class $1 { \n\tconstructor () {} \n\n \t$2 () {\n\t$3\n\t}\n}", - "description": "Setup the basic structure of a class in JS" - }, - "ExpressJS": { - "prefix": "jsExpressSetup", - "body": [ - "const express = require( 'express' );", - "let app = express();", - "const path = require( 'path' );", - "const expressSession = require( 'express-session' );", - "const fs = require( 'fs' );", - "const bodyParser = require( 'body-parser' );", - "const cookieParser = require( 'cookie-parser' )", - "const favicon = require( 'serve-favicon' );", - "\napp.use( expressSession ( {\n\tsecret: $1,\n\tresave: true,\n\tsaveUninitialized: true\n} ) );", - "app.use( bodyParser.urlencoded( { extended: false } ) );", - "app.use( bodyParser.json() );", - "app.use( cookieParser() );", - "app.use( favicon( path.join( __dirname + '$2' ) ) );\n", - "app.use( ( request, response, next ) => {\n\tresponse.sendFile( path.join( __dirname + '$3' ) ) \n} );", - "\n\napp.get( '/', ( request, response ) => {\n$4\n} );", - "\n\nconst PORT = process.env.PORT || 8080;", - "http.createServer( app ).listen( PORT );" - ] - }, - "ExpressJS-Route": { - "prefix": "jsEjsRoute", - "body": "\n\napp.get( '$1', ( request: express.Request, response: express.Response ) => {\n$4\n} );" - }, - "JSAsync": { - "prefix": "jsAsync", - "body": "(async () => {\n$1\n} ) ();" - }, - "JSpromiseReturnFunc": { - "prefix": "jsPromise", - "body": "function $1 () {\n\treturn new Promise( ( resolve, reject ) => {\n\t$2\n\t} );\n}" - }, - "fetch from other url": { - "prefix": "remoteURL", - "body": [ - "localStorage.getItem( 'url' ) + '/$1'", - ], - "description": "remote URL fetching (get from base address from local storage)" - }, - "fetch post": { - "prefix": "fetchPost", - "body": [ - "const fetchOptions = {", - "\tmethod: 'post',", - "\tbody: JSON.stringify( $1 ),", - "\tcredentials: 'include',", - "\theaders: {", - "\t\t'Content-Type': 'application/json',", - "\t\t'charset': 'utf-8'", - "\t}", - "};", - "fetch( $2, fetchOptions ).then( res => {", - "\tif ( res.status === 200 ) {", - "\t\tres.json().then( json => {", - "\t\t\t$3", - "\t\t} );", - "\t}", - "} );", - "$4" - ], - "description": "POST request using fetch" - }, - "fetch get": { - "prefix": "fetchGet", - "body": [ - "fetch( $2, { credentials: 'include' } ).then( res => {", - "\tif ( res.status === 200 ) {", - "\t\tres.json().then( json => {", - "\t\t\t$3", - "\t\t} );", - "\t}", - "} );", - "$4" - ], - "description": "POST request using fetch" - }, - "promise": { - "prefix": "promise", - "body": [ - "return new Promise( ( resolve, reject ) => {", - "\t", - "} );" - ] - } -} \ No newline at end of file diff --git a/nvim-coc/snippets/snippets/vue.json b/nvim-coc/snippets/snippets/vue.json deleted file mode 100755 index 9571d25..0000000 --- a/nvim-coc/snippets/snippets/vue.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "script:setup": { - "prefix": "script:setup", - "body": [ - "" - ], - "description": "Setup the basic structure of a class in JS" - } -} \ No newline at end of file diff --git a/nvim-coc/spell/en.utf-8.add b/nvim-coc/spell/en.utf-8.add deleted file mode 100644 index 24244e1..0000000 --- a/nvim-coc/spell/en.utf-8.add +++ /dev/null @@ -1,4 +0,0 @@ -NeoVim -config -Supremum -Infimum diff --git a/nvim-coc/spell/en.utf-8.add.spl b/nvim-coc/spell/en.utf-8.add.spl deleted file mode 100644 index 4a148822f8d44b8fd6e48b0551def6d4e18267e9..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 94 zcmWIZ^erw(&B-zP&%nT7%#xg$SIn5tn8%pLn8}#V$N**KGL|ytGBPnSrUE6)fKotC d15m7hv51k8fk8YKsF{z^4=f!9mIev{0RZ