From d5a5353b4f9d6a7d7a5defb4c4420d00871d4a5f Mon Sep 17 00:00:00 2001 From: Alejandro Laguna Date: Fri, 9 Oct 2026 12:22:19 +0200 Subject: [PATCH] chore: cleanup neovim config --- nvim/init.lua | 3 - nvim/lazy-lock.json | 22 ++---- nvim/lua/autocmds.lua | 25 ------ nvim/lua/keymaps.lua | 16 ---- nvim/lua/notes.lua | 1 - nvim/lua/options.lua | 2 - nvim/lua/plugins.lua | 60 +-------------- nvim/lua/plugins/lazydev.lua | 2 +- nvim/lua/plugins/obsidian.lua | 15 ---- nvim/lua/plugins/presence.lua | 131 -------------------------------- nvim/lua/plugins/startup.lua | 0 nvim/lua/plugins/supermaven.lua | 20 ----- nvim/lua/plugins/zig-lamp.lua | 24 ------ 13 files changed, 7 insertions(+), 314 deletions(-) delete mode 100644 nvim/lua/keymaps.lua delete mode 100644 nvim/lua/notes.lua delete mode 100644 nvim/lua/plugins/obsidian.lua delete mode 100644 nvim/lua/plugins/presence.lua delete mode 100644 nvim/lua/plugins/startup.lua delete mode 100644 nvim/lua/plugins/supermaven.lua delete mode 100644 nvim/lua/plugins/zig-lamp.lua diff --git a/nvim/init.lua b/nvim/init.lua index 207191141f03cc9b5ec3168dedb85a7960730381..99add7fce52e4e042b32fff4326903675aceb98c 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -3,11 +3,8 @@ vim.g.maplocalleader = " " vim.g.have_nerd_font = false require("options") -require("keymaps") require("autocmds") require("plugins") -require("notes") ---vim.cmd.colorscheme("nordbones") vim.g.seoul256_background = 233 vim.cmd.colorscheme("seoul256") diff --git a/nvim/lazy-lock.json b/nvim/lazy-lock.json index 165668534f8462f195a68d2b72858a3496963617..6159587612262f504378f342c6a2c4f1d0b57680 100644 --- a/nvim/lazy-lock.json +++ b/nvim/lazy-lock.json @@ -1,40 +1,28 @@ { "LuaSnip": { "branch": "master", "commit": "0abc8f390b278c3b4aabc4c004ac8a088b65cf24" }, - "beside.nvim": { "branch": "main", "commit": "ce2f889718f13b22eb8cdeb6738a74f7bbea06a4" }, "cmp-nvim-lsp": { "branch": "main", "commit": "cbc7b02bb99fae35cb42f514762b89b5126651ef" }, "cmp-path": { "branch": "main", "commit": "c642487086dbd9a93160e1679a1327be111cbc25" }, "cmp_luasnip": { "branch": "master", "commit": "98d9cb5c2c38532bd9bdb481067b20fea8f32e90" }, "conform.nvim": { "branch": "master", "commit": "016802de402556da54c36bd7359b441266b01cdd" }, - "cord": { "branch": "master", "commit": "85f295e43550bc968b66d95d8bfd6e12bb17df08" }, "fidget.nvim": { "branch": "main", "commit": "9e0201673e08e997e7cf52afca5565c70bd117f3" }, - "gitsigns.nvim": { "branch": "main", "commit": "070a5d7b985546cc57e1fc61e5bc507fecac6045" }, - "julia-vim": { "branch": "master", "commit": "52b30547346b21bc93acda28d626795667f9e087" }, + "gitsigns.nvim": { "branch": "main", "commit": "851a051e2bd2caba97e23314c68d69f1b1cf5d19" }, "lazy.nvim": { "branch": "main", "commit": "306a05526ada86a7b30af95c5cc81ffba93fef97" }, "lazydev.nvim": { "branch": "main", "commit": "ff2cbcba459b637ec3fd165a2be59b7bbaeedf0d" }, "luvit-meta": { "branch": "main", "commit": "7edcd52ac6f2acc2f83f0cc27ac989a142408fbf" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "b3298993d55fa194279b5eb9dbfb3a43da65cadf" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "e17625cdc8c2650787467398e02c5d63a2cde966" }, "mason-tool-installer.nvim": { "branch": "main", "commit": "443f1ef8b5e6bf47045cb2217b6f748a223cf7dc" }, "mason.nvim": { "branch": "main", "commit": "2a6940af80375532e5e9e7c1f2fc6319a1b7a69d" }, "nvim-cmp": { "branch": "main", "commit": "2ffe79f1f021def8dd1fcd81deb16f1bb0d989f3" }, - "nvim-lspconfig": { "branch": "master", "commit": "a9bb4d5f4276aa5cddc015faa3ecc5a7b5a26b14" }, + "nvim-lspconfig": { "branch": "master", "commit": "c59fc922f718fa055f69f5f3bc888f23211571eb" }, "nvim-treesitter": { "branch": "master", "commit": "cf12346a3414fa1b06af75c79faebe7f76df080a" }, "plenary.nvim": { "branch": "master", "commit": "74b06c6c75e4eeb3108ec01852001636d85a932b" }, - "screenkey.nvim": { "branch": "main", "commit": "16390931d847b1d5d77098daccac4e55654ac9e2" }, "seoul256.vim": { "branch": "master", "commit": "0357ff3e44faab66c98bc98dfc89c834e37012da" }, - "supermaven-nvim": { "branch": "main", "commit": "07d20fce48a5629686aefb0a7cd4b25e33947d50" }, - "tabular": { "branch": "master", "commit": "12437cd1b53488e24936ec4b091c9324cafee311" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "b25b749b9db64d375d782094e2b9dce53ad53a40" }, "telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" }, "telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" }, "todo-comments.nvim": { "branch": "main", "commit": "31e3c38ce9b29781e4422fc0322eb0a21f4e8668" }, - "transparent.nvim": { "branch": "main", "commit": "e00ca1cf09caef575edf8da7e5a8b9193893b4c7" }, - "vim-blade": { "branch": "master", "commit": "9534101808cc320eef003129a40cab04b026a20c" }, - "vim-markdown": { "branch": "master", "commit": "1bc9d0cd8e1cc3e901b0a49c2b50a843f1c89397" }, "vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" }, - "vim-table-mode": { "branch": "master", "commit": "bb025308a45c67c7c8f0763ba37bc2ee3f534df0" }, - "vimtex": { "branch": "master", "commit": "16a5609d17a436db7f48046d91747fd6a9d75c74" }, + "vimtex": { "branch": "master", "commit": "77df16780a8a4b418c651f3a4300d59bc2dd3603" }, "vimwiki": { "branch": "dev", "commit": "a54a3002e229c4b43d69ced170ff77663a5b2c40" }, - "which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }, - "zen-mode.nvim": { "branch": "main", "commit": "8564ce6d29ec7554eb9df578efa882d33b3c23a7" }, - "zig-lamp": { "branch": "main", "commit": "0654299f5150b2a420212e34f86a96c7dbae31e2" } + "which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" } } diff --git a/nvim/lua/autocmds.lua b/nvim/lua/autocmds.lua index dcf32182bf9b8b6910b2335bb1d51fbf6803c07d..0beed6c0cbc97a1341e85f3de909a3722935a380 100644 --- a/nvim/lua/autocmds.lua +++ b/nvim/lua/autocmds.lua @@ -6,34 +6,9 @@ vim.api.nvim_create_autocmd("TextYankPost", { end, }) --- Forcefully stop treesitter for markdown to prevent crashes vim.api.nvim_create_autocmd("FileType", { pattern = { "markdown" }, callback = function(args) pcall(vim.treesitter.stop, args.buf) end, }) - ---local function pdf_of(file) --- return vim.fn.fnamemodify(file, ":r") .. ".pdf" ---end --- ---vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost" }, { --- pattern = "*.typ", --- callback = function() --- local file = vim.fn.expand("%:p") --- local pdf = pdf_of(file) --- --- vim.fn.jobstart({ --- "typst", --- "compile", --- file, --- pdf, --- }, { detach = true }) --- --- vim.fn.jobstart({ --- "sioyek", --- pdf, --- }, { detach = true }) --- end, ---}) diff --git a/nvim/lua/keymaps.lua b/nvim/lua/keymaps.lua deleted file mode 100644 index f209991cd936037889ab44c65483c1af61670a04..0000000000000000000000000000000000000000 --- a/nvim/lua/keymaps.lua +++ /dev/null @@ -1,16 +0,0 @@ -vim.keymap.set("n", "", "nohlsearch") -vim.keymap.set("n", "q", vim.diagnostic.setloclist, { desc = "Open diagnostic [Q]uickfix list" }) - -vim.keymap.set("n", "cd", ":cd %:h") - -vim.keymap.set("t", "", "", { desc = "Exit terminal mode" }) - -vim.keymap.set("n", "", 'echo "Use h to move!!"') -vim.keymap.set("n", "", 'echo "Use l to move!!"') -vim.keymap.set("n", "", 'echo "Use k to move!!"') -vim.keymap.set("n", "", 'echo "Use j to move!!"') - -vim.keymap.set("n", "", "", { desc = "Move focus to the left window" }) -vim.keymap.set("n", "", "", { desc = "Move focus to the right window" }) -vim.keymap.set("n", "", "", { desc = "Move focus to the lower window" }) -vim.keymap.set("n", "", "", { desc = "Move focus to the upper window" }) diff --git a/nvim/lua/notes.lua b/nvim/lua/notes.lua deleted file mode 100644 index 83bdbc0d2591ae37621a15bebbb89cf91e805a30..0000000000000000000000000000000000000000 --- a/nvim/lua/notes.lua +++ /dev/null @@ -1 +0,0 @@ -vim.keymap.set("n", "zz", ":ZenMode") diff --git a/nvim/lua/options.lua b/nvim/lua/options.lua index c787eb1a89dc428d588f9af47b9718b11fab57cb..6eddccbd46304f7970052a0ba81c369106e3333c 100644 --- a/nvim/lua/options.lua +++ b/nvim/lua/options.lua @@ -42,8 +42,6 @@ vim.diagnostic.config({ vim.opt.conceallevel = 1 --- Failsafe: Completely block treesitter from starting on markdown --- This prevents crashes in Neovim 0.12+ hovers/files local original_ts_start = vim.treesitter.start vim.treesitter.start = function(bufnr, lang) local buf = bufnr or vim.api.nvim_get_current_buf() diff --git a/nvim/lua/plugins.lua b/nvim/lua/plugins.lua index a4fd7b1b1da8a7bcaada4c5b4f5ed539a554c0dc..c24b1ce05a2b0a1350e982297888451c982a66f1 100644 --- a/nvim/lua/plugins.lua +++ b/nvim/lua/plugins.lua @@ -11,45 +11,8 @@ vim.opt.rtp:prepend(lazypath) require("lazy").setup({ "tpope/vim-sleuth", - -- Lua - { - "folke/zen-mode.nvim", - opts = { - window = { - width = 100, -- width of the Zen window - }, - }, - }, - { - "preservim/vim-markdown", - dependencies = { "godlygeek/tabular" }, - init = function() - vim.g.vim_markdown_folding_disabled = 1 - vim.g.vim_markdown_no_default_key_mappings = 1 - end, - }, - "dhruvasagar/vim-table-mode", - "xiyaowong/transparent.nvim", - "jwalton512/vim-blade", "Bilal2453/luvit-meta", - "JuliaEditorSupport/julia-vim", - -- { - -- "norcalli/nvim-colorizer.lua", - -- config = function() - -- require("colorizer").setup({ - -- "*", - -- css = { rgb_fn = true }, - -- html = { mode = "foreground" }, - -- }) - -- end, - -- }, - { - "NStefan002/screenkey.nvim", - lazy = false, - version = "*", -- or branch = "main", to use the latest commit - }, - { import = "plugins.presence" }, { import = "plugins.gitsigns" }, { import = "plugins.which_key" }, { import = "plugins.telescope" }, @@ -61,26 +24,5 @@ require("lazy").setup({ { import = "plugins.todo_comments" }, { import = "plugins.treesitter" }, { import = "plugins.latex" }, - { import = "plugins.zig-lamp" }, { import = "plugins.vimwiki" }, - { import = "plugins.supermaven" }, - -- { import = "plugins.obsidian" }, -}, { - ui = { - icons = vim.g.have_nerd_font and {} or { - cmd = "⌘", - config = "🛠", - event = "📅", - ft = "📂", - init = "⚙", - keys = "🗝", - plugin = "🔌", - runtime = "💻", - require = "🌙", - source = "📄", - start = "🚀", - task = "📌", - lazy = "💤 ", - }, - }, -}) +}, {}) diff --git a/nvim/lua/plugins/lazydev.lua b/nvim/lua/plugins/lazydev.lua index c2168758389fef1739fccd2c7285040d72884701..2995a70aeaa1a27b39a8dc9226e8a9c558aad884 100644 --- a/nvim/lua/plugins/lazydev.lua +++ b/nvim/lua/plugins/lazydev.lua @@ -3,7 +3,7 @@ return { ft = "lua", opts = { library = { - { path = "luvit-meta/library", words = { "vim%.uv" } }, + { path = "${3rd}/luv/library", words = { "vim%.uv" } }, }, }, } diff --git a/nvim/lua/plugins/obsidian.lua b/nvim/lua/plugins/obsidian.lua deleted file mode 100644 index 0b1b69f90f4d2db4765d5fbe44f4b2f11216650c..0000000000000000000000000000000000000000 --- a/nvim/lua/plugins/obsidian.lua +++ /dev/null @@ -1,15 +0,0 @@ -return { - "obsidian-nvim/obsidian.nvim", - version = "*", -- use latest release, remove to use latest commit - ---@module 'obsidian' - ---@type obsidian.config - opts = { - legacy_commands = false, -- this will be removed in 4.0.0 - workspaces = { - { - name = "personal", - path = "~/personal/vault", - }, - }, - }, -} diff --git a/nvim/lua/plugins/presence.lua b/nvim/lua/plugins/presence.lua deleted file mode 100644 index c2a52eb2a172967e7ad9042c3f9ae686690a0fa9..0000000000000000000000000000000000000000 --- a/nvim/lua/plugins/presence.lua +++ /dev/null @@ -1,131 +0,0 @@ -return { - "vyfor/cord.nvim", - name = "cord", - config = function() - require("cord").setup({ - enabled = true, - log_level = vim.log.levels.OFF, - editor = { - client = "neovim", - tooltip = "neovim", - icon = nil, - }, - display = { - theme = "atom", - flavor = "accent", - swap_fields = false, - swap_icons = false, - }, - timestamp = { - enabled = true, - reset_on_idle = false, - reset_on_change = false, - }, - idle = { - enabled = false, - timeout = 300000, - show_status = true, - ignore_focus = true, - unidle_on_focus = true, - smart_idle = true, - details = "Idling", - state = nil, - tooltip = "💤", - icon = nil, - }, - text = { - default = nil, - workspace = function(opts) - return "in " .. opts.workspace - end, - viewing = function(opts) - return "viewing " .. opts.filename - end, - editing = function(opts) - return "editing " .. opts.filename - end, - file_browser = function(opts) - return "browsing files in " .. opts.name - end, - plugin_manager = function(opts) - return "managing plugins in " .. opts.name - end, - lsp = function(opts) - return "configuring LSP in " .. opts.name - end, - docs = function(opts) - return "reading " .. opts.name - end, - vcs = function(opts) - return "committing changes in " .. opts.name - end, - notes = function(opts) - return "taking notes in " .. opts.name - end, - debug = function(opts) - return "debugging in " .. opts.name - end, - test = function(opts) - return "testing in " .. opts.name - end, - diagnostics = function(opts) - return "fixing problems in " .. opts.name - end, - games = function(opts) - return "playing " .. opts.name - end, - terminal = function(opts) - return "running commands in " .. opts.name - end, - dashboard = "home", - }, - buttons = nil, - -- buttons = { - -- { - -- label = 'View Repository', - -- url = function(opts) return opts.repo_url end, - -- }, - -- }, - assets = nil, - variables = nil, - hooks = { - ready = nil, - shutdown = nil, - pre_activity = nil, - post_activity = nil, - idle_enter = nil, - idle_leave = nil, - workspace_change = nil, - }, - plugins = nil, - advanced = { - plugin = { - autocmds = true, - cursor_update = "on_hold", - match_in_mappings = true, - }, - server = { - update = "fetch", - pipe_path = nil, - executable_path = nil, - timeout = 300000, - }, - discord = { - reconnect = { - enabled = false, - interval = 5000, - initial = true, - }, - }, - workspace = { - root_markers = { - ".git", - ".hg", - ".svn", - }, - limit_to_cwd = false, - }, - }, - }) - end, -} diff --git a/nvim/lua/plugins/startup.lua b/nvim/lua/plugins/startup.lua deleted file mode 100644 index e69de29bb2d1d6434b8b29ae775ad8c2e48c5391..0000000000000000000000000000000000000000 diff --git a/nvim/lua/plugins/supermaven.lua b/nvim/lua/plugins/supermaven.lua deleted file mode 100644 index 94f28b23d64d96de70567576b05b235590f21d2f..0000000000000000000000000000000000000000 --- a/nvim/lua/plugins/supermaven.lua +++ /dev/null @@ -1,20 +0,0 @@ -return { - "supermaven-inc/supermaven-nvim", - config = function() - require("supermaven-nvim").setup({ - keymaps = { - accept_suggestion = "", - clear_suggestion = "", - accept_word = "", - }, - ignore_filetypes = { cpp = true }, -- you can add filetypes here to ignore - color = { - suggestion_color = "#5c534f", - cterm = 244, - }, - log_level = "info", -- set to "off" to disable logging completely - disable_inline_completion = false, -- disables inline completion for use with cmp - disable_keymaps = false, -- disables built in keymaps for more manual control - }) - end, -} diff --git a/nvim/lua/plugins/zig-lamp.lua b/nvim/lua/plugins/zig-lamp.lua deleted file mode 100644 index 79e5331ebdf58392b7f239f40b6c28a1b5cfd1d0..0000000000000000000000000000000000000000 --- a/nvim/lua/plugins/zig-lamp.lua +++ /dev/null @@ -1,24 +0,0 @@ -return { - "jinzhongjia/zig-lamp", - event = "VeryLazy", - -- Optional but recommended: build the local FFI lib to enable faster/safer verification & formatting - build = ":ZigLampBuild async", - dependencies = { - "nvim-lua/plenary.nvim", - }, - init = function() - -- Backward-compatible global vars (all optional) - -- Auto-install ZLS: timeout in milliseconds; set to nil to disable - vim.g.zig_lamp_zls_auto_install = nil - -- Fallback to system zls when no local match is found - vim.g.zig_lamp_fall_back_sys_zls = nil - -- Extra LSP options merged into defaults - vim.g.zig_lamp_zls_lsp_opt = {} - -- ZLS server settings (overrides built-in recommendations) - vim.g.zig_lamp_zls_settings = {} - -- Help text color for the package panel - vim.g.zig_lamp_pkg_help_fg = "#CF5C00" - -- Timeout (ms) used by `zig fetch` when retrieving url hashes - vim.g.zig_lamp_zig_fetch_timeout = 5000 - end, -}