From 6bd0938c018b52c138d608977043467eae93fefd Mon Sep 17 00:00:00 2001 From: José Juan Loeza Sierra Date: Tue, 31 Mar 2026 20:51:00 -0700 Subject: remove neovim --- dot-config/nvim/init.lua | 29 -------------- dot-config/nvim/lua/my-lualine-theme.lua | 43 --------------------- dot-config/nvim/lua/spellcheck.lua | 37 ------------------ dot-config/nvim/lua/wordcount.lua | 32 ---------------- dot-config/nvim/nvim-pack-lock.json | 60 ----------------------------- dot-config/nvim/plugin/colorscheme.lua | 11 ------ dot-config/nvim/plugin/fzf.lua | 9 ----- dot-config/nvim/plugin/gitsigns.lua | 65 -------------------------------- dot-config/nvim/plugin/hardtime.lua | 6 --- dot-config/nvim/plugin/lsp.lua | 34 ----------------- dot-config/nvim/plugin/lualine.lua | 25 ------------ dot-config/nvim/plugin/notify.lua | 11 ------ dot-config/nvim/plugin/spellcheck.lua | 5 --- dot-config/nvim/plugin/todo.lua | 8 ---- dot-config/nvim/plugin/treesitter.lua | 20 ---------- dot-config/nvim/plugin/yazi.lua | 8 ---- 16 files changed, 403 deletions(-) delete mode 100644 dot-config/nvim/init.lua delete mode 100644 dot-config/nvim/lua/my-lualine-theme.lua delete mode 100644 dot-config/nvim/lua/spellcheck.lua delete mode 100644 dot-config/nvim/lua/wordcount.lua delete mode 100644 dot-config/nvim/nvim-pack-lock.json delete mode 100644 dot-config/nvim/plugin/colorscheme.lua delete mode 100644 dot-config/nvim/plugin/fzf.lua delete mode 100644 dot-config/nvim/plugin/gitsigns.lua delete mode 100644 dot-config/nvim/plugin/hardtime.lua delete mode 100644 dot-config/nvim/plugin/lsp.lua delete mode 100644 dot-config/nvim/plugin/lualine.lua delete mode 100644 dot-config/nvim/plugin/notify.lua delete mode 100644 dot-config/nvim/plugin/spellcheck.lua delete mode 100644 dot-config/nvim/plugin/todo.lua delete mode 100644 dot-config/nvim/plugin/treesitter.lua delete mode 100644 dot-config/nvim/plugin/yazi.lua (limited to 'dot-config/nvim') diff --git a/dot-config/nvim/init.lua b/dot-config/nvim/init.lua deleted file mode 100644 index 6b888a6..0000000 --- a/dot-config/nvim/init.lua +++ /dev/null @@ -1,29 +0,0 @@ --- General -vim.g.mapleader = " " - -vim.o.undofile = true -- Persistant undo - --- UI -vim.o.cmdheight = 0 -- Puts Lualine at very bottom -vim.o.cursorline = true -- Current line highlighting -vim.o.number = true -- Show line numbers -vim.o.relativenumber = true -- Relative line numbers -vim.o.signcolumn = "yes" -- Always show signcolumn (less flicker) -vim.o.splitbelow = true -- Horizontal splits will be below -vim.o.splitright = true -- Vertical splits will be to the right -vim.o.termguicolors = true -- Enable 24-bit RGB color in TUI -vim.o.winborder = "single" -- Use border in floating windows - --- Editing -vim.o.autoindent = true -- Use auto indent -vim.o.expandtab = true -- Convert tabs to spaces -vim.o.ignorecase = true -- Ignore case during search -vim.o.incsearch = true -- Show search matches while typing -vim.o.shiftwidth = 2 -- Use this number of spaces for indentation -vim.o.smartindent = true -- Make indenting smart -vim.o.tabstop = 2 -- Show tab as this number of spaces - --- TODO: consider not using clipboard for all operations --- see :h clipboard -vim.opt.clipboard = "unnamedplus" -vim.g.clipboard = "osc52" diff --git a/dot-config/nvim/lua/my-lualine-theme.lua b/dot-config/nvim/lua/my-lualine-theme.lua deleted file mode 100644 index f42d331..0000000 --- a/dot-config/nvim/lua/my-lualine-theme.lua +++ /dev/null @@ -1,43 +0,0 @@ -local gh = require("github-theme.spec").load("github_light") - -local colors = { - bg = gh.bg1, - alt_bg = gh.bg0, - dark_fg = gh.palette.fg.emphasis, - fg = gh.palette.fg.default, - light_fg = gh.palette.fg.subtle, - normal = gh.palette.blue.base, - insert = gh.palette.green.base, - visual = gh.palette.magenta.base, - replace = gh.palette.red.base, -} - -local theme = { - normal = { - a = { fg = colors.bg, bg = colors.normal }, - b = { fg = colors.light_fg, bg = colors.alt_bg }, - c = { fg = colors.fg, bg = colors.bg }, - }, - replace = { - a = { fg = colors.bg, bg = colors.replace }, - b = { fg = colors.light_fg, bg = colors.alt_bg }, - }, - insert = { - a = { fg = colors.bg, bg = colors.insert }, - b = { fg = colors.light_fg, bg = colors.alt_bg }, - }, - visual = { - a = { fg = colors.bg, bg = colors.visual }, - b = { fg = colors.light_fg, bg = colors.alt_bg }, - }, - inactive = { - a = { fg = colors.dark_fg, bg = colors.bg }, - b = { fg = colors.dark_fg, bg = colors.bg }, - c = { fg = colors.dark_fg, bg = colors.bg }, - }, -} - -theme.command = theme.normal -theme.terminal = theme.insert - -return theme diff --git a/dot-config/nvim/lua/spellcheck.lua b/dot-config/nvim/lua/spellcheck.lua deleted file mode 100644 index 8ebc8c5..0000000 --- a/dot-config/nvim/lua/spellcheck.lua +++ /dev/null @@ -1,37 +0,0 @@ --- To enable spellchecking --- --- Credits --- https://www.reddit.com/r/neovim/comments/1fwqc8t/how_to_enable_spell_check_for_only_specific_files/ - -local M = {} - -local default_config = { - filetypes = { "markdown" }, -} - -local function enable_spell(config) - config = config or default_config - - -- Set global spell to false initially for all files - vim.opt.spell = false - - -- Create augroup - vim.api.nvim_create_augroup("Spellcheck", { clear = true }) - - -- Create autocommand to enable spellcheck - vim.api.nvim_create_autocmd({ "FileType" }, { - group = "Spellcheck", -- Grouping for easier management - pattern = config.filetypes, -- Only for these filetypes - callback = function() - vim.opt_local.spell = true -- Enable spellcheck - vim.opt_local.spelllang = "en_us" -- Set language - end, - desc = "Enable spellcheck for defined filetypes", - }) -end - -function M.setup(config) - enable_spell(config) -end - -return M diff --git a/dot-config/nvim/lua/wordcount.lua b/dot-config/nvim/lua/wordcount.lua deleted file mode 100644 index 1ff5579..0000000 --- a/dot-config/nvim/lua/wordcount.lua +++ /dev/null @@ -1,32 +0,0 @@ --- Wordcount in markdown --- --- Credits --- https://github.com/nvim-lualine/lualine.nvim/issues/328#issuecomment-982672253 --- https://github.com/skwee357/nvim-prose - -local M = {} - -local config = { - filetypes = { "markdown", "text", "typst" }, -} - -local function format_wc(n) - return tostring(n) .. " words" -end - -function M.wordcount() - local wc = vim.fn.wordcount() - return (wc.visual_words and format_wc(wc.visual_words)) or format_wc(wc.words) -end - -function M.is_available() - for _, ft in ipairs(config.filetypes) do - if ft == vim.bo.filetype then - return true - end - end - - return false -end - -return M diff --git a/dot-config/nvim/nvim-pack-lock.json b/dot-config/nvim/nvim-pack-lock.json deleted file mode 100644 index 231189b..0000000 --- a/dot-config/nvim/nvim-pack-lock.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "plugins": { - "conform.nvim": { - "rev": "5420c4b5ea0aeb99c09cfbd4fd0b70d257b44f25", - "src": "https://github.com/stevearc/conform.nvim" - }, - "fzf-lua": { - "rev": "b1d2b0dc146cb9260209da4d7ab754adb0a2653d", - "src": "https://github.com/ibhagwan/fzf-lua" - }, - "github-nvim-theme": { - "rev": "c106c9472154d6b2c74b74565616b877ae8ed31d", - "src": "https://github.com/projekt0n/github-nvim-theme" - }, - "gitsigns.nvim": { - "rev": "5813e4878748805f1518cee7abb50fd7205a3a48", - "src": "https://github.com/lewis6991/gitsigns.nvim" - }, - "hardtime.nvim": { - "rev": "b4e4319", - "src": "https://github.com/m4xshen/hardtime.nvim" - }, - "lualine.nvim": { - "rev": "47f91c416daef12db467145e16bed5bbfe00add8", - "src": "https://github.com/nvim-lualine/lualine.nvim" - }, - "mason.nvim": { - "rev": "57e5a8addb8c71fb063ee4acda466c7cf6ad2800", - "src": "https://github.com/mason-org/mason.nvim" - }, - "nui.nvim": { - "rev": "de74099", - "src": "https://github.com/MunifTanjim/nui.nvim" - }, - "nvim-lspconfig": { - "rev": "5eeb45c8c469b84777a5bd8796b698c8a1c780a7", - "src": "https://github.com/neovim/nvim-lspconfig" - }, - "nvim-notify": { - "rev": "8701bec", - "src": "https://github.com/rcarriga/nvim-notify" - }, - "nvim-treesitter": { - "rev": "42fc28ba", - "src": "https://github.com/nvim-treesitter/nvim-treesitter" - }, - "plenary.nvim": { - "rev": "b9fd522", - "src": "https://github.com/nvim-lua/plenary.nvim" - }, - "todo-comments.nvim": { - "rev": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668", - "src": "https://github.com/folke/todo-comments.nvim" - }, - "yazi.nvim": { - "rev": "50d1333a7f6d9ece4f6b09a94cff934a7e9900eb", - "src": "https://github.com/mikavilpas/yazi.nvim" - } - } -} \ No newline at end of file diff --git a/dot-config/nvim/plugin/colorscheme.lua b/dot-config/nvim/plugin/colorscheme.lua deleted file mode 100644 index 697e538..0000000 --- a/dot-config/nvim/plugin/colorscheme.lua +++ /dev/null @@ -1,11 +0,0 @@ -vim.pack.add({ - "https://github.com/projekt0n/github-nvim-theme", -}) - -require("github-theme").setup({ - options = { - transparent = true, - }, -}) - -vim.cmd("colorscheme github_light") diff --git a/dot-config/nvim/plugin/fzf.lua b/dot-config/nvim/plugin/fzf.lua deleted file mode 100644 index 259d828..0000000 --- a/dot-config/nvim/plugin/fzf.lua +++ /dev/null @@ -1,9 +0,0 @@ -vim.pack.add({ - "https://github.com/ibhagwan/fzf-lua", -}) - -require("fzf-lua").setup() - -vim.keymap.set("n", "", FzfLua.files) -vim.keymap.set("n", "/", FzfLua.live_grep) -vim.keymap.set("n", "fb", FzfLua.buffers) diff --git a/dot-config/nvim/plugin/gitsigns.lua b/dot-config/nvim/plugin/gitsigns.lua deleted file mode 100644 index 5e5646f..0000000 --- a/dot-config/nvim/plugin/gitsigns.lua +++ /dev/null @@ -1,65 +0,0 @@ -vim.pack.add({ - "https://github.com/lewis6991/gitsigns.nvim", -}) - -require("gitsigns").setup({ - -- signs copied from LazyVim - signs = { - add = { text = "▎" }, - change = { text = "▎" }, - delete = { text = "" }, - topdelete = { text = "" }, - changedelete = { text = "▎" }, - untracked = { text = "▎" }, - }, - signs_staged = { - add = { text = "▎" }, - change = { text = "▎" }, - delete = { text = "" }, - topdelete = { text = "" }, - changedelete = { text = "▎" }, - }, -}) - -local gitsigns = require("gitsigns") - --- Suggested keymap --- see https://github.com/lewis6991/gitsigns.nvim?tab=readme-ov-file#-keymaps - -vim.keymap.set("n", "hs", gitsigns.stage_hunk) -vim.keymap.set("n", "hr", gitsigns.reset_hunk) - -vim.keymap.set("v", "hs", function() - gitsigns.stage_hunk({ vim.fn.line("."), vim.fn.line("v") }) -end) - -vim.keymap.set("v", "hr", function() - gitsigns.reset_hunk({ vim.fn.line("."), vim.fn.line("v") }) -end) - -vim.keymap.set("n", "hS", gitsigns.stage_buffer) -vim.keymap.set("n", "hR", gitsigns.reset_buffer) -vim.keymap.set("n", "hp", gitsigns.preview_hunk) -vim.keymap.set("n", "hi", gitsigns.preview_hunk_inline) - -vim.keymap.set("n", "hb", function() - gitsigns.blame_line({ full = true }) -end) - -vim.keymap.set("n", "hd", gitsigns.diffthis) - -vim.keymap.set("n", "hD", function() - gitsigns.diffthis("~") -end) - -vim.keymap.set("n", "hQ", function() - gitsigns.setqflist("all") -end) -vim.keymap.set("n", "hq", gitsigns.setqflist) - --- Toggles -vim.keymap.set("n", "tb", gitsigns.toggle_current_line_blame) -vim.keymap.set("n", "tw", gitsigns.toggle_word_diff) - --- Text object -vim.keymap.set({ "o", "x" }, "ih", gitsigns.select_hunk) diff --git a/dot-config/nvim/plugin/hardtime.lua b/dot-config/nvim/plugin/hardtime.lua deleted file mode 100644 index f956c86..0000000 --- a/dot-config/nvim/plugin/hardtime.lua +++ /dev/null @@ -1,6 +0,0 @@ -vim.pack.add({ - "https://github.com/m4xshen/hardtime.nvim", - "https://github.com/MunifTanjim/nui.nvim", -}) - -require("hardtime").setup() diff --git a/dot-config/nvim/plugin/lsp.lua b/dot-config/nvim/plugin/lsp.lua deleted file mode 100644 index 557063b..0000000 --- a/dot-config/nvim/plugin/lsp.lua +++ /dev/null @@ -1,34 +0,0 @@ -vim.pack.add({ - "https://github.com/neovim/nvim-lspconfig", - "https://github.com/mason-org/mason.nvim", - "https://github.com/stevearc/conform.nvim", -}) - -require("mason").setup() - -vim.lsp.enable({ - "expert", -- elixir - "lua_ls", -- lua - "prettier", - "ruff", --python - "tinymist", -- typst -}) - -require("conform").setup({ - -- Formatters - formatters_by_ft = { - elixir = { "mix" }, - javascript = { "prettier" }, - lua = { "stylua" }, - haskell = { "ormolu" }, - python = { "ruff format" }, - typescript = { "prettier" }, - typst = { "typstyle" }, - }, - - format_on_save = { - -- I recommend these options. See :help conform.format for details. - lsp_format = "fallback", - timeout_ms = 500, - }, -}) diff --git a/dot-config/nvim/plugin/lualine.lua b/dot-config/nvim/plugin/lualine.lua deleted file mode 100644 index 79e3805..0000000 --- a/dot-config/nvim/plugin/lualine.lua +++ /dev/null @@ -1,25 +0,0 @@ -vim.pack.add({ - "https://github.com/nvim-lualine/lualine.nvim", -}) - -local wc = require("wordcount") - -local theme = require("my-lualine-theme") - -require("lualine").setup({ - options = { - component_separators = "", - section_separators = "", - theme = theme, - }, - sections = { - lualine_y = { - -- Add wordcount - { wc.wordcount, cond = wc.is_available }, - -- Existing conf - "progress", - }, - }, -}) - -vim.o.cmdheight = 0 -- Puts Lualine at very bottom diff --git a/dot-config/nvim/plugin/notify.lua b/dot-config/nvim/plugin/notify.lua deleted file mode 100644 index 75ceb47..0000000 --- a/dot-config/nvim/plugin/notify.lua +++ /dev/null @@ -1,11 +0,0 @@ -vim.pack.add({ - "https://github.com/rcarriga/nvim-notify", -}) - -require("notify").setup({ - background_colour = "#000000", - render = "wrapped-compact", - stages = "static", -}) - -vim.notify = require("notify") -- Use "notify" plugin as default notify function diff --git a/dot-config/nvim/plugin/spellcheck.lua b/dot-config/nvim/plugin/spellcheck.lua deleted file mode 100644 index 21bffb1..0000000 --- a/dot-config/nvim/plugin/spellcheck.lua +++ /dev/null @@ -1,5 +0,0 @@ --- Enable custom spellcheck plugin - -require("spellcheck").setup({ - filetypes = { "gitcommit", "markdown", "plaintext", "text", "typst" }, -}) diff --git a/dot-config/nvim/plugin/todo.lua b/dot-config/nvim/plugin/todo.lua deleted file mode 100644 index 2d9e0dd..0000000 --- a/dot-config/nvim/plugin/todo.lua +++ /dev/null @@ -1,8 +0,0 @@ -vim.pack.add({ - "https://github.com/folke/todo-comments.nvim", - "https://github.com/nvim-lua/plenary.nvim", -- dependency -}) - -require("todo-comments").setup() - -vim.keymap.set("n", "ft", require("todo-comments.fzf").todo) diff --git a/dot-config/nvim/plugin/treesitter.lua b/dot-config/nvim/plugin/treesitter.lua deleted file mode 100644 index e07a948..0000000 --- a/dot-config/nvim/plugin/treesitter.lua +++ /dev/null @@ -1,20 +0,0 @@ -vim.pack.add({ - "https://github.com/nvim-treesitter/nvim-treesitter", -}) - -require("nvim-treesitter").setup() -require("nvim-treesitter.configs").setup({ - ensure_installed = { - "eex", -- elixir - "elixir", - "heex", -- elixir - "html", - "markdown", - "markdown_inline", - "python", - "typst", - }, - highlight = { - enable = true, - }, -}) diff --git a/dot-config/nvim/plugin/yazi.lua b/dot-config/nvim/plugin/yazi.lua deleted file mode 100644 index d34c359..0000000 --- a/dot-config/nvim/plugin/yazi.lua +++ /dev/null @@ -1,8 +0,0 @@ -vim.pack.add({ - "https://github.com/mikavilpas/yazi.nvim", - "https://github.com/nvim-lua/plenary.nvim", --dependency -}) - -vim.keymap.set("n", "e", function() - require("yazi").yazi() -end) -- cgit v1.3