feat: markdown opt-in extra + fix local.lua load order#2043
Closed
4rc0s wants to merge 18 commits into
Closed
Conversation
- Rename lua/kickstart/ -> lua/whipsmart/ (health check, opt-in extras) - Replace doc/kickstart.txt with doc/whipsmart.txt; regenerate help tags - Rename all kickstart-* augroups to whipsmart-* in lsp.lua and telescope.lua - Fix missed kickstart-lsp-highlight reference in nvim_clear_autocmds - Wire up custom/plugins loading (was silently never called) - Replace implicit glob plugin loader with explicit ordered list in init.lua - Remove dead mason-lspconfig dependency (unused with 0.12 native LSP) - Simplify format.lua format_on_save to a clear user-editable ft table Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
mason-tool-installer uses Mason registry names (e.g. lua-language-server) which differ from lspconfig names (e.g. lua_ls). Previously mason-lspconfig handled this translation; now that it's removed, maintain a separate mason_tools list with correct Mason package names. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- Add 'Adding LSP Servers' section explaining the servers/mason_tools split and linking to mason-registry and lspconfig server list for name lookups - Fix 'Adding a Plugin' section — core plugins need explicit registration in init.lua loader list; personal plugins go in lua/custom/plugins/ - Update project layout to include lua/whipsmart/ and lua/custom/ - Add format-on-save opt-in instructions Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
README: - Add :checkhealth whipsmart step to Quick Start flow UNIFIED.md: - Update module list to match explicit load order in init.lua - Document lua/whipsmart/plugins/ opt-in extras and how to enable them - Tick off completed roadmap items from the rebrand/cleanup session - Replace stale kickstart.nvim upstream sync instructions with a note that the project has diverged and upstream syncing no longer applies Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
pack-manager.nvim is the UI layer over vim.pack and the most significant third-party dependency. Added to UNIFIED.md with repo link, rationale, and the workflow for picking up upstream improvements via the lockfile. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
… custom plugins - init.lua: relativenumber, colorcolumn=120, expandtab=false, isfname @-@, [d/]d diagnostic navigation, <leader>e diagnostic float, hecate hostname - lsp.lua: add gopls, basedpyright (uv venv detection), ts_ls, nimls/gleam (conditional), rust-analyzer in mason_tools; gleam indentation autocmd - treesitter.lua: expand parsers (rust, go, js, ts, py, json, yaml, toml, gleam, nim) - format.lua: full conform config with all formatters and :Format range command - telescope.lua: add <C-p> git_files and <leader>pf prompted grep - custom/plugins/rust.lua: rustaceanvim ^6 - custom/plugins/trouble.lua: trouble.nvim with standard keybindings - custom/plugins/gitsigns.lua: enable whipsmart gitsigns extended keymaps
…overrides - init.lua: swap hostname if/elseif block for pcall(require, 'local') - .gitignore: add lua/local.lua - lua/local.lua.example: documented template (font, colorscheme, paths, opt-in extras) - UNIFIED.md: update Machine Detection section and roadmap
Adds lua/whipsmart/plugins/markdown.lua as an opt-in extra that bundles render-markdown.nvim (unconditional) and obsidian.nvim + blink.compat (gated on vim.g.obsidian_vaults being set in local.lua). Uses blink.cmp.config.merge_with to extend the completion config post-setup with markdown-specific per_filetype sources and [[wikilink trigger behaviour. Also fixes a load-order bug where pcall(require, 'local') ran before vim.g.have_nerd_font and all vim.o.* defaults were set, making it impossible for local.lua to override them. The call is now at the end of Section 1 so local.lua runs last and overrides work correctly. UNIFIED.md updated: markdown extra documented, roci migration and load-order fix checked off the roadmap.
Author
|
Opened against wrong repo by mistake — intended for 4rc0s/whipsmart.nvim |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
lua/whipsmart/plugins/markdown.luaas a new opt-in extra bundling render-markdown.nvim (always loaded) and obsidian.nvim + blink.compat (gated onvim.g.obsidian_vaultsbeing set inlocal.lua)pcall(require, 'local')ran beforevim.g.have_nerd_fontand allvim.o.*defaults, makinglocal.luaunable to override them — the call is now at the end of Section 1UNIFIED.md: markdown extra documented, roci migration and load-order fix checked offEnabling the markdown extra on a machine
In
lua/local.lua:In
lua/custom/plugins/markdown.lua:render-markdown loads even without
obsidian_vaultsset — only the obsidian/blink.compat block is gated.blink.cmp integration notes
blink.compatis added without a version pin (HEAD/main branch) — released tags historically lackedcmp.get_config()that obsidian.nvim calls internally.The obsidian sources and
[[wikilink trigger behaviour are applied viarequire('blink.cmp.config').merge_with(...)— the correct v1 post-setup extension API — called fromcustom/plugins/(Section 3) afterplugins.cmphas already runsetup().Test plan
obsidian_vaultsset — no errors, render-markdown active in markdown buffersobsidian_vaultsset — obsidian completion sources available via[[vim.g.have_nerd_font = falseinlocal.lua— override takes effect