diff --git a/config/nvim_unstable/lua/aleidk/constants.lua b/config/nvim_unstable/lua/aleidk/constants.lua deleted file mode 100644 index 52cdd9f..0000000 --- a/config/nvim_unstable/lua/aleidk/constants.lua +++ /dev/null @@ -1,63 +0,0 @@ -return { - icons = { - misc = { - pint = " ", - }, - dap = { - Stopped = { "󰁕 ", "DiagnosticWarn", "DapStoppedLine" }, - Breakpoint = " ", - BreakpointCondition = " ", - BreakpointRejected = { " ", "DiagnosticError" }, - LogPoint = ".>", - }, - diagnostics = { - Error = " ", - Warn = " ", - Hint = " ", - Info = " ", - }, - git = { - added = " ", - modified = " ", - removed = " ", - branch = "", - }, - kinds = { - Array = " ", - Boolean = " ", - Class = " ", - Color = " ", - Constant = " ", - Constructor = " ", - Copilot = " ", - Enum = " ", - EnumMember = " ", - Event = " ", - Field = " ", - File = " ", - Folder = " ", - Function = " ", - Interface = " ", - Key = " ", - Keyword = " ", - Method = " ", - Module = " ", - Namespace = " ", - Null = " ", - Number = " ", - Object = " ", - Operator = " ", - Package = " ", - Property = " ", - Reference = " ", - Snippet = " ", - String = " ", - Struct = " ", - Text = " ", - TypeParameter = " ", - Unit = " ", - Value = " ", - Variable = " ", - }, - }, -} diff --git a/config/nvim_unstable/lua/aleidk/keymaps.lua b/config/nvim_unstable/lua/aleidk/keymaps.lua index f7a3019..8d23432 100644 --- a/config/nvim_unstable/lua/aleidk/keymaps.lua +++ b/config/nvim_unstable/lua/aleidk/keymaps.lua @@ -8,16 +8,18 @@ vim.keymap.set("n", "j", "v:count == 0 ? 'gj' : 'j'", { desc = "Move cursor regardless of word wrap", expr = true, silent = true }) vim.keymap.set("n", "J", "mzJ`z", { desc = "Keep cursor in column while joining lines", silent = true }) --- vim.keymap.set("n", "", "zz", { desc = "Keep cursor centered while junping", silent = true }) --- vim.keymap.set("n", "", "zz", { desc = "Keep cursor centered while junping", silent = true }) --- vim.keymap.set("n", "n", "nzzzv", { desc = "Keep cursor centered while searching", silent = true }) --- vim.keymap.set("n", "N", "Nzzzv", { desc = "Keep cursor centered while searching", silent = true }) +vim.keymap.set("n", "", "zz", { desc = "Keep cursor centered while junping", silent = true }) +vim.keymap.set("n", "", "zz", { desc = "Keep cursor centered while junping", silent = true }) +vim.keymap.set("n", "n", "nzzzv", { desc = "Keep cursor centered while searching", silent = true }) +vim.keymap.set("n", "N", "Nzzzv", { desc = "Keep cursor centered while searching", silent = true }) -- Utils vim.keymap.set("n", "|", ":vs", { desc = "Create vsplit", silent = true }) vim.keymap.set("n", "°", ":sp", { desc = "Create split", silent = true }) vim.keymap.set("v", "p", [["_dP]], { desc = "Paste without lossing yanked text", silent = true }) +vim.keymap.set("v", "J", ":m '>+1gv=gv", { desc = "Move selection down", silent = true }) +vim.keymap.set("v", "K", ":m '<-2gv=gv", { desc = "Move selection up", silent = true }) vim.keymap.set("n", "uh", ":nohl", { desc = "Remove search highlight", silent = true }) -- Buffer manipulation diff --git a/config/nvim_unstable/lua/aleidk/plugins/bookmarks.lua b/config/nvim_unstable/lua/aleidk/plugins/bookmarks.lua deleted file mode 100644 index a68f973..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/bookmarks.lua +++ /dev/null @@ -1,38 +0,0 @@ -local function select_or_create(search) - local grapple = require("grapple") - - if grapple.exists(search) then - grapple.select(search) - else - grapple.tag() - end -end - -return { - "cbochs/grapple.nvim", - dependencies = { - { "nvim-tree/nvim-web-devicons", lazy = true }, - }, - lazy = false, - cmd = "Grapple", - config = function() - local telescope = require("telescope") - telescope.load_extension("grapple") - end, - keys = { - { "a", "Grapple toggle", desc = "Toggle bookmark for current file" }, - { "D", "Grapple reset", desc = "Delete all bookmarks" }, - { "t", "Grapple toggle_tags", desc = "Toggle bookmarks window" }, - { "T", "Grapple toggle_scopes", desc = "Toggle scopes window" }, - { "n", "Grapple cycle forward", desc = "Next bookmark" }, - { "N", "Grapple cycle backward", desc = "Prev bookmark" }, - { "j", function() select_or_create({ index = 1 }) end, desc = "Go or create bookmark 1" }, - { "k", function() select_or_create({ index = 2 }) end, desc = "Go or create bookmark 2" }, - { "l", function() select_or_create({ index = 3 }) end, desc = "Go or create bookmark 3" }, - { "ñ", function() select_or_create({ index = 4 }) end, desc = "Go or create bookmark 4" }, - { "J", "Grapple tag index=1", desc = "Override bookmark 1" }, - { "K", "Grapple tag index=2", desc = "Override bookmark 2" }, - { "L", "Grapple tag index=3", desc = "Override bookmark 3" }, - { "Ñ", "Grapple tag index=4", desc = "Override bookmark 4" }, - }, -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/colorscheme.lua b/config/nvim_unstable/lua/aleidk/plugins/colorscheme.lua index 2eef16c..af5c7fc 100644 --- a/config/nvim_unstable/lua/aleidk/plugins/colorscheme.lua +++ b/config/nvim_unstable/lua/aleidk/plugins/colorscheme.lua @@ -18,10 +18,6 @@ return { -- Change colors.none if not using a transparent background mason = true, noice = true, notify = true, - mini = { - enabled = true, - indentscope_color = "", - }, }, custom_highlights = function(colors) return { diff --git a/config/nvim_unstable/lua/aleidk/plugins/comments.lua b/config/nvim_unstable/lua/aleidk/plugins/comments.lua deleted file mode 100644 index de06eda..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/comments.lua +++ /dev/null @@ -1,12 +0,0 @@ -return { - { - "LudoPinelli/comment-box.nvim", - opts = { - outer_blank_lines = true, - }, - keys = { - { "gcb", function() require("comment-box").lcbox() end, { desc = "Create a comment box", mode = { "n", "v" }, } }, - { "gcl", function() require("comment-box").llline() end, { desc = "Create a comment line", mode = { "n", "v" }, } }, - }, - }, -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/database.lua b/config/nvim_unstable/lua/aleidk/plugins/database.lua deleted file mode 100644 index 175697b..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/database.lua +++ /dev/null @@ -1,44 +0,0 @@ -return { - "kristijanhusak/vim-dadbod-ui", - dependencies = { - { "tpope/vim-dadbod", lazy = true }, - { "kristijanhusak/vim-dadbod-completion", ft = { "sql", "mysql", "plsql" }, lazy = true }, - }, - cmd = { - "DBUI", - "DBUIToggle", - "DBUIAddConnection", - "DBUIFindBuffer", - }, - keys = { - { "ud", "DBUIToggle", desc = "Toggle DB UI" }, - }, - init = function() - -- Your DBUI configuration - vim.g.db_ui_use_nerd_fonts = 1 - vim.g.db_ui_force_echo_notifications = 1 - - vim.api.nvim_create_autocmd("FileType", { - pattern = { - "sql", - "mysql", - "plsql", - }, - command = [[setlocal omnifunc=vim_dadbod_completion#omni]], - }) - - vim.api.nvim_create_autocmd("FileType", { - pattern = { - "sql", - "mysql", - "plsql", - }, - callback = function() - ---@diagnostic disable-next-line: missing-fields - require("cmp").setup.buffer({ - sources = { { name = "vim-dadbod-completion" }, { name = "buffer" } }, - }) - end, - }) - end, -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/doc-gen.lua b/config/nvim_unstable/lua/aleidk/plugins/doc-gen.lua deleted file mode 100644 index 199ce62..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/doc-gen.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - "danymat/neogen", - opts = { snippet_engine = "luasnip" }, - dependencies = { "nvim-treesitter/nvim-treesitter" }, - version = "*", -- stable releases - keys = { - { - "gcd", - function() - require("neogen").generate() - end, - desc = "Generate comment docstring", - }, - }, -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/file-explorer.lua b/config/nvim_unstable/lua/aleidk/plugins/file-explorer.lua deleted file mode 100644 index 6499ad7..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/file-explorer.lua +++ /dev/null @@ -1,33 +0,0 @@ -return { - "mikavilpas/yazi.nvim", - keys = { - { - "E", - "Yazi", - desc = "Open yazi at the current file", - }, - -- { - -- -- Open in the current working directory - -- "E", - -- "Yazi cwd", - -- desc = "Open the file manager in nvim's working directory", - -- }, - }, - opts = { - -- if you want to open yazi instead of netrw, see below for more info - open_for_directories = true, - open_multiple_tabs = true, - floating_window_scaling_factor = 1, - keymaps = { - show_help = '', - open_file_in_vertical_split = '', - open_file_in_horizontal_split = '', - open_file_in_tab = '', - grep_in_directory = '', - cycle_open_buffers = '', - copy_relative_path_to_selected_files = '', - send_to_quickfix_list = '', - change_working_directory = "", - }, - }, -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/formatter.lua b/config/nvim_unstable/lua/aleidk/plugins/formatter.lua deleted file mode 100644 index 2406d75..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/formatter.lua +++ /dev/null @@ -1,124 +0,0 @@ -return { - "stevearc/conform.nvim", - event = { "BufWritePre" }, - cmd = { "ConformInfo" }, - opts = { - -- log_level = vim.log.levels.DEBUG, - - -- See aviable formatters in: https://github.com/stevearc/conform.nvim#formatters - -- Formatters can be installed by mason - formatters_by_ft = { - -- Conform will run multiple formatters sequentially - -- Use a stop_after_first = true to run only the first available formatter - -- Use the "_" filetype to run formatters on filetypes that don't - -- have other formatters configured. - ["_"] = { "trim_whitespace" }, - blade = { "blade-formatter" }, - css = { "biome" }, - go = { "gofumpt", "goimports_reviser", "golines" }, - html = { "djlint", "prettierd", stop_after_first = true }, - htmldjango = { "djlint", stop_after_first = true }, - javascript = { "biome" }, - javascriptreact = { "biome" }, - json = { "biome" }, - jsonc = { "biome" }, - lua = { "stylua" }, - markdown = { "markdownlint" }, - nim = { "nimpretty" }, - php = { "pint" }, - python = { "ruff_format", "ruff_organize_imports" }, - scss = { "prettierd", "prettier", stop_after_first = true }, - sh = { "shfmt" }, - toml = { "taplo" }, - typescript = { "biome" }, - typescriptreact = { "biome" }, - xml = { "lemminx" }, - zsh = { "shfmt" }, - sql = { "sleek" } - }, - formatters = { - djlint = { - prepend_args = { - "--format-css", - "--indent-css", - "2", - "--format-js", - "--indent-js", - "2", - "--indent", - "2", - "--preserve-blank-lines", - "--quiet" - } - } - }, - format_on_save = function(bufnr) - -- Disable with a global or buffer-local variable - if vim.g.disable_autoformat or vim.b[bufnr].disable_autoformat then - return - end - - return { timeout_ms = 2000, lsp_fallback = true } - end, - }, - config = function(_, opts) - require("conform").setup(opts) - - local function toggleAutoFormat() - -- to make this global, change b to g - if vim.b.disable_autoformat == nil then - vim.b.disable_autoformat = true - print("Autoformat set to: " .. tostring(not vim.b.disable_autoformat)) - return - end - - vim.b.disable_autoformat = not vim.b.disable_autoformat - print("Autoformat set to: " .. tostring(not vim.b.disable_autoformat)) - end - - MAP("n", "uf", toggleAutoFormat, "Toggle auto format") - - vim.api.nvim_create_user_command("Fmt", function(args) - local range = nil - if args.count ~= -1 then - local end_line = vim.api.nvim_buf_get_lines(0, args.line2 - 1, args.line2, true)[1] - range = { - start = { args.line1, 0 }, - ["end"] = { args.line2, end_line:len() }, - } - end - - local function callback(err, did_edit) - if not did_edit then - vim.notify("The file was not formatted:\n" .. tostring(err), vim.log.levels.ERROR) - return - end - - if args.bang then - vim.cmd("w") - end - end - - require("conform").format( - { - async = true, - lsp_format = "fallback", - range = range, - formatters = args.fargs - }, - callback - ) - end, { - range = true, - bang = true, - force = true, - desc = "Format the document", - nargs = '*', - -- complete = function() - -- local formatters = require('conform').formatters_by_ft - -- - -- return vim.tbl_keys(formatters) - -- end - }) - end, -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/git.lua b/config/nvim_unstable/lua/aleidk/plugins/git.lua deleted file mode 100644 index f34672f..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/git.lua +++ /dev/null @@ -1,52 +0,0 @@ -local const = require("aleidk.constants") - -return { - { - "lewis6991/gitsigns.nvim", - event = { "BufReadPre", "BufNewFile" }, - opts = { - -- See `:help gitsigns.txt` - signcolumn = true, -- Toggle with `:Gitsigns toggle_signs` - numhl = true, -- Toggle with `:Gitsigns toggle_numhl` - linehl = false, -- Toggle with `:Gitsigns toggle_linehl` - word_diff = false, -- Toggle with `:Gitsigns toggle_word_diff` - signs = { - add = { text = const.icons.git.added }, - change = { text = const.icons.git.modified }, - delete = { text = const.icons.git.removed }, - topdelete = { text = const.icons.git.removed }, - changedelete = { text = const.icons.git.removed }, - untracked = { text = "▎" }, - }, - signs_staged = { - add = { text = const.icons.git.added }, - change = { text = const.icons.git.modified }, - delete = { text = const.icons.git.removed }, - topdelete = { text = const.icons.git.removed }, - changedelete = { text = const.icons.git.removed }, - untracked = { text = "▎" }, - }, - on_attach = function(buffer) - local gs = package.loaded.gitsigns - - local function map(mode, l, r, desc) - vim.keymap.set(mode, "g" .. l, r, { buffer = buffer, desc = desc }) - end - - -- stylua: ignore start - map("n", "j", gs.next_hunk, "Next Hunk") - map("n", "k", gs.prev_hunk, "Prev Hunk") - map({ "n", "v" }, "s", ":Gitsigns stage_hunk", "Stage Hunk") - map({ "n", "v" }, "r", ":Gitsigns reset_hunk", "Reset Hunk") - map("n", "u", gs.undo_stage_hunk, "Undo Stage Hunk") - map("n", "R", gs.reset_buffer, "Reset Buffer") - map("n", "", gs.preview_hunk, "Preview Hunk") - map("n", "l", function() gs.blame_line({ full = true }) end, "Blame Line") - map("n", "L", gs.toggle_current_line_blame, "Toggle current line blame") - map("n", "d", gs.toggle_word_diff, "Toggle word diff") - map("n", "h", "diffget", "Diff This with last commit") - map("n", "l", "diffput", "Diff This with last commit") - end, - }, - }, -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/indent-blankline.lua b/config/nvim_unstable/lua/aleidk/plugins/indent-blankline.lua deleted file mode 100644 index f529305..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/indent-blankline.lua +++ /dev/null @@ -1,30 +0,0 @@ -return { - -- Add indentation guides even on blank lines - "lukas-reineke/indent-blankline.nvim", - dependencies = { "nvim-treesitter/nvim-treesitter" }, - main = "ibl", - opts = { - -- char = "▏", - indent = { - char = "│", - tab_char = "│", - }, - scope = { - enabled = true, - }, - exclude = { - filetypes = { - "help", - "alpha", - "dashboard", - "neo-tree", - "Trouble", - "lazy", - "mason", - "notify", - "toggleterm", - "lazyterm", - }, - }, - }, -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/init.lua b/config/nvim_unstable/lua/aleidk/plugins/init.lua index 1745f23..546a909 100644 --- a/config/nvim_unstable/lua/aleidk/plugins/init.lua +++ b/config/nvim_unstable/lua/aleidk/plugins/init.lua @@ -1,12 +1,6 @@ return { 'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically - { "nvim-tree/nvim-web-devicons", lazy = true }, - { - "ckolkey/ts-node-action", - dependencies = { "nvim-treesitter" }, - opts = {}, - keys = { - { "ls", function() require("ts-node-action").node_action() end, desc = "Node Action" } - } - }, + + + } diff --git a/config/nvim_unstable/lua/aleidk/plugins/linters.lua b/config/nvim_unstable/lua/aleidk/plugins/linters.lua deleted file mode 100644 index 06aec9f..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/linters.lua +++ /dev/null @@ -1,25 +0,0 @@ -return { - "mfussenegger/nvim-lint", - event = "VeryLazy", - config = function() - local lint = require("lint") - - lint.linters.gitlint.stdin = true - lint.linters.gitlint.args = { "--contrib", "contrib-title-conventional-commits", "--msg-filename", "-" } - - lint.linters_by_ft = { - -- astro = { "eslint_d" }, - python = { "ruff" }, - sh = { "shellcheck" }, - NeogitCommitMessage = { "gitlint" }, - gitcommit = { "gitlint" }, - markdown = { "markdownlint" }, - } - - vim.api.nvim_create_autocmd({ "BufWritePost" }, { - callback = function() - require("lint").try_lint() - end, - }) - end, -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/markdown.lua b/config/nvim_unstable/lua/aleidk/plugins/markdown.lua deleted file mode 100644 index 19e36a2..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/markdown.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - { - "MeanderingProgrammer/markdown.nvim", - name = "render-markdown", -- Only needed if you have another plugin named markdown.nvim - -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.nvim' }, -- if you use the mini.nvim suite - -- dependencies = { 'nvim-treesitter/nvim-treesitter', 'echasnovski/mini.icons' }, -- if you use standalone mini plugins - dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" }, -- if you prefer nvim-web-devicons - opts = { - file_types = { 'markdown', 'copilot-chat' }, - sign = { - enabled = false, - }, - }, - }, -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/mini.lua b/config/nvim_unstable/lua/aleidk/plugins/mini.lua deleted file mode 100644 index 2482bcf..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/mini.lua +++ /dev/null @@ -1,154 +0,0 @@ -return { - 'echasnovski/mini.nvim', - version = '*', - dependencies = { - "rafamadriz/friendly-snippets", - }, - config = function() - require('mini.icons').setup() - require('mini.bracketed').setup() -- [] movement for various stuff - require("mini.ai").setup({}) - require('mini.cursorword').setup() -- Hightlight word under cursor - require('mini.extra').setup() - require('mini.jump').setup() -- Extend f, F, t, T - require('mini.surround').setup() - require('mini.operators').setup() - require('mini.pairs').setup() - require('mini.splitjoin').setup() - require("mini.align").setup({}) - require('mini.animate').setup() - - require('mini.files').setup() -- file explorer - vim.keymap.set("n", "e", ":lua MiniFiles.open(vim.api.nvim_buf_get_name(0))", - { desc = "Integrated file explorer", silent = true }) - - require('mini.move').setup({ - mappings = { - -- Move visual selection in Visual mode - left = 'H', - right = 'L', - down = 'J', - up = 'K', - - -- Move current line in Normal mode - line_left = '', - line_right = '', - line_down = '', - line_up = '', - }, - }) - require('mini.comment').setup({ - options = { - -- Whether to ignore blank lines when commenting - ignore_blank_line = true, - -- Whether to ignore blank lines in actions and textobject - start_of_line = true, - }, - }) - - local gen_loader = require('mini.snippets').gen_loader - require('mini.snippets').setup({ - snippets = { - -- Load custom file with global snippets first (adjust for Windows) - gen_loader.from_file('~/.config/nvim-unstable/snippets/global.json'), - - -- Load snippets based on current language by reading files from - -- "snippets/" subdirectories from 'runtimepath' directories. - gen_loader.from_lang(), - }, - }) - - local miniclue = require("mini.clue") - miniclue.setup({ - triggers = { - -- Leader triggers - { mode = "n", keys = "" }, - { mode = "v", keys = "" }, - { mode = "x", keys = "" }, - - -- Built-in completion - { mode = "i", keys = "" }, - - -- `g` key - { mode = "n", keys = "g" }, - { mode = "x", keys = "g" }, - - -- Marks - { mode = "n", keys = "'" }, - { mode = "n", keys = "`" }, - { mode = "x", keys = "'" }, - { mode = "x", keys = "`" }, - - -- Registers - { mode = "n", keys = '"' }, - { mode = "x", keys = '"' }, - { mode = "i", keys = "" }, - { mode = "c", keys = "" }, - - -- Window commands - { mode = "n", keys = "" }, - - -- `z` key - { mode = "n", keys = "z" }, - { mode = "x", keys = "z" }, - }, - - -- Add a "postkeys" value to activate those keys after others - clues = { - miniclue.gen_clues.builtin_completion(), - miniclue.gen_clues.g(), - miniclue.gen_clues.marks(), - miniclue.gen_clues.registers(), - miniclue.gen_clues.windows(), - miniclue.gen_clues.z(), - - { mode = "n", keys = "", desc = "+Bookmarks" }, - { mode = "n", keys = "n", postkeys = "" }, - { mode = "n", keys = "N", postkeys = "" }, - { mode = "n", keys = "b", desc = "+Buffers" }, - { mode = "n", keys = "bh", postkeys = "b" }, - { mode = "n", keys = "bl", postkeys = "b" }, - { mode = "n", keys = "f", desc = "+Find" }, - { mode = "n", keys = "g", desc = "+Git" }, - { mode = "n", keys = "l", desc = "+LSP" }, - { mode = "n", keys = "r", desc = "+Replace" }, - { mode = "n", keys = "u", desc = "+UI & Config" }, - { mode = "n", keys = "un", desc = "+Noice" }, - { mode = "n", keys = "w", desc = "+Workspace" }, - { mode = "n", keys = "p", desc = "+Run stuff" }, - { mode = "n", keys = "z", desc = "+ZK" }, - { mode = "v", keys = "z", desc = "+ZK" }, - { mode = "v", keys = "a", desc = "+AI" }, - { mode = "n", keys = "a", desc = "+AI" }, - { mode = "n", keys = "g?", desc = "+Print Debug" }, - }, - - -- Clue window settings - window = { - -- Floating window config - config = { - width = "auto", - }, - -- Delay before showing clue window - delay = 200, - -- Keys to scroll inside the clue window - scroll_down = "", - scroll_up = "", - }, - }) - - local hipatterns = require('mini.hipatterns') - hipatterns.setup({ - highlighters = { - -- Highlight standalone 'FIXME', 'HACK', 'TODO', 'NOTE' - fixme = { pattern = '%f[%w]()FIXME()%f[%W]', group = 'MiniHipatternsFixme' }, - hack = { pattern = '%f[%w]()HACK()%f[%W]', group = 'MiniHipatternsHack' }, - todo = { pattern = '%f[%w]()TODO()%f[%W]', group = 'MiniHipatternsTodo' }, - note = { pattern = '%f[%w]()NOTE()%f[%W]', group = 'MiniHipatternsNote' }, - - -- Highlight hex color strings (`#rrggbb`) using that color - hex_color = hipatterns.gen_highlighter.hex_color(), - }, - }) - end -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/remote-sshfs.lua b/config/nvim_unstable/lua/aleidk/plugins/remote-sshfs.lua deleted file mode 100644 index 30f9134..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/remote-sshfs.lua +++ /dev/null @@ -1,59 +0,0 @@ -return { - { - "nosduco/remote-sshfs.nvim", - dependencies = { "nvim-telescope/telescope.nvim" }, - cmd = { "RemoteSSHFSConnect" }, - config = function() - require("remote-sshfs").setup({}) - require("telescope").load_extension("remote-sshfs") - end, - }, - { - "amitds1997/remote-nvim.nvim", - version = "*", -- Pin to GitHub releases - dependencies = { - "nvim-lua/plenary.nvim", -- For standard functions - "MunifTanjim/nui.nvim", -- To build the plugin UI - "nvim-telescope/telescope.nvim", -- For picking b/w different remote methods - }, - opts = { - remote = { - copy_dirs = { - data = { - base = vim.fn.stdpath("data"), -- Path from where data has to be copied. You can choose to copy entire path or subdirectories inside using `dirs` - dirs = { "lazy" }, -- Directories inside `base` to copy over. If this is set to string "*"; it means entire `base` should be copied over - compression = { - enabled = true, -- Should data be compressed before uploading - additional_opts = { "--exclude-vcs" }, -- Any arguments that can be passed to `tar` for compression can be specified here to improve your compression - }, - }, - -- cache = { - -- base = vim.fn.stdpath("cache"), - -- dirs = {}, - -- compression = { - -- enabled = true, - -- }, - -- }, - state = { - base = vim.fn.stdpath("state"), - dirs = {}, - compression = { - enabled = true, - }, - }, - }, - }, - client_callback = function(port, workspace_config) - local cmd = ("tmux new-window 'nvim --server localhost:%s --remote-ui' && tmux select-window -t:$"):format(port) - vim.fn.jobstart(cmd, { - detach = true, - on_exit = function(job_id, exit_code, event_type) - -- This function will be called when the job exits - print("Client", job_id, "exited with code", exit_code, "Event type:", event_type) - end, - }) - end, - }, - config = true, - } -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/trouble.lua b/config/nvim_unstable/lua/aleidk/plugins/trouble.lua deleted file mode 100644 index b7a17bf..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/trouble.lua +++ /dev/null @@ -1,93 +0,0 @@ ----@module 'trouble' - -return { - "folke/trouble.nvim", - dependencies = { "nvim-tree/nvim-web-devicons" }, - cmd = { "Trouble" }, - keys = { - { - "fD", - "Trouble diagnostics open", - desc = "Find diagnostics (Trouble)", - }, - { - "fd", - "Trouble diagnostics open filter.buf=0", - desc = "Find buffer diagnostics (Trouble)", - }, - { - "ll", - "Trouble symbols open", - desc = "Symbols (Trouble)", - }, - { - "li", - "Trouble lsp open", - desc = "LSP info of node (Trouble)", - }, - { - "fq", - "Trouble qflist open", - desc = "Quickfix List (Trouble)", - }, - }, - opts = function() - ---@type trouble.Window.opts - local win_opts = { - -- size = { width = 30, height = 0.5 }, - minimal = true, - border = "rounded", - position = "bottom", - } - - ---@type trouble.Config - return { - focus = true, - - ---@type trouble.Window.opts - preview = { - type = "split", - relative = "win", - position = "top", - }, - - ---@type table - keys = { - [""] = "jump_close", - [""] = "jump", - ["<2-leftmouse>"] = "jump", - [""] = "jump_split_close", - [""] = "jump_vsplit_close", - ["v"] = "jump_split_close", - ["s"] = "jump_vsplit_close", - [""] = "cancel", -- hack to fool myself into thinking I move to the avobe window - ["a"] = function(view, ctx) - -- TODO: this is not possible until this issue is solved - -- https://github.com/neovim/neovim/issues/31206 - local trouble = require("trouble") - view:action("jump_only") - - vim.lsp.buf.code_action() - - trouble.focus(view, ctx) - end, - }, - win = win_opts, - ---@type table - modes = { - symbols = { - focus = true, - win = win_opts - }, - lsp_references = { - focus = true, - win = win_opts - }, - lsp = { - focus = true, - win = win_opts - }, - } - } - end -} diff --git a/config/nvim_unstable/lua/aleidk/plugins/typescript-tools.lua b/config/nvim_unstable/lua/aleidk/plugins/typescript-tools.lua deleted file mode 100644 index 7f106b0..0000000 --- a/config/nvim_unstable/lua/aleidk/plugins/typescript-tools.lua +++ /dev/null @@ -1,18 +0,0 @@ -return { - "pmizio/typescript-tools.nvim", - dependencies = { "nvim-lua/plenary.nvim", "neovim/nvim-lspconfig" }, - opts = { - init_options = { - preferences = { - disableSuggestions = true, - }, - }, - settings = { - -- array of strings("fix_all"|"add_missing_imports"|"remove_unused"| - -- "remove_unused_imports"|"organize_imports") -- or string "all" - -- to include all supported code actions - -- specify commands exposed as code_actions - expose_as_code_action = "all", - }, - }, -} diff --git a/config/nvim_unstable/snippets/global.json b/config/nvim_unstable/snippets/global.json deleted file mode 100644 index 7f89b11..0000000 --- a/config/nvim_unstable/snippets/global.json +++ /dev/null @@ -1,11 +0,0 @@ -{ - "Basic": { "prefix": "ba", "body": "T1=$1 T2=$2 T0=$0" }, - "Placeholders": { "prefix": "pl", "body": "T1=${1:aa}\nT2=${2:<$1>}" }, - "Choices": { "prefix": "ch", "body": "T1=${1|a,b|} T2=${2|c,d|}" }, - "Linked": { "prefix": "li", "body": "T1=$1\n\tT1=$1" }, - "Variables": { "prefix": "va", "body": "Runtime: $VIMRUNTIME\n" }, - "Complex": { - "prefix": "co", - "body": ["T1=${1:$RANDOM}", "T3=${3:$1_${2:$1}}", "T2=$2"] - } -}