Cleanup/config trim#47
Merged
Merged
Conversation
- Remove duplicate HashNewSyntax user command registration - Trim options.lua to personal overrides (drop LazyVim defaults) - Drop redundant nvin-web-devicons plugin spec - Remove unused sonokai plugin; keep tokyonight in lazy install list - Update README to match current plugin set Co-authored-by: Cursor <cursoragent@cursor.com>
- Lazy-load oil.nvim (keys, cmd, nvim . still opens via Oil) - Lazy-load reprobado on commands and leader keymaps; merge vorbis-tools spec - Remove FormatJSONV2, FormatSQLV2, and :ColorScheme (LazyVim covers these) - Drop unused require_tool entries for underscore and sql-formatter-cli Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Two SQL formatters use different tools: FormatSQL (sqlformat/sqlparse) and FormatSQLFormatter (sql-formatter-cli). Keep FormatSQLV2 as an alias. Co-authored-by: Cursor <cursoragent@cursor.com>
Add conform formatter definitions and utils.format helper so :FormatSQL, :FormatSQLFormatter, :FormatJSON, and :FormatXML share the same engines as <leader>cf while keeping install hints from require_tool. Co-authored-by: Cursor <cursoragent@cursor.com>
Route :FormatCss through utils.format with prettier, and register css/scss/less/sass filetypes for <leader>cf. Co-authored-by: Cursor <cursoragent@cursor.com>
Wire: FormatJSON through utils.functions like other conform formatters. Co-authored-by: Cursor <cursoragent@cursor.com>
Replace manual getpos/setpos around escape unwrapping; conform handles cursor for the format step like other format commands. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Replace cat -s with a Vim substitute that keeps one blank line between functions/blocks; update command description and behavior test. Co-authored-by: Cursor <cursoragent@cursor.com>
Vim %s cannot match newlines between lines; rewrite in Lua and treat whitespace-only lines as blank so demo.xml-style spacing collapses. Co-authored-by: Cursor <cursoragent@cursor.com>
Rewrite in Lua like RemoveExtraEmptyLines; treat whitespace-only lines as blank so demo.xml and similar files do not error. Co-authored-by: Cursor <cursoragent@cursor.com>
Clarify what UpdateRubyHashesByLines does (syntax normalize, split }, {,
single quotes, re-indent) without changing the original behavior.
Co-authored-by: Cursor <cursoragent@cursor.com>
Extend cmdPreservePosition to wrap functions as well as :commands and use it throughout functions.lua. Add specs for AddLineNumbers, FormatHashes, FormatJSON, and FormatSQLFormatter. Co-authored-by: Cursor <cursoragent@cursor.com>
conform.format returns true when formatters run; errors come via the callback. Fixes false "Format JSON: true" notifications for all commands using utils.format.run. Co-authored-by: Cursor <cursoragent@cursor.com>
Keep LazyVim's enter preset (arrows, C-n/C-p) and add Vim-friendlier completion movement keys. Co-authored-by: Cursor <cursoragent@cursor.com>
Co-authored-by: Cursor <cursoragent@cursor.com>
Temporarily enable modifiable for normal file buffers, refuse readonly and special buftypes with clear errors, and pcall format to avoid stack dumps. Co-authored-by: Cursor <cursoragent@cursor.com>
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
FormatJSON,FormatSQL,FormatSQLFormatter,FormatCss,FormatXML) through conform, with install hints viarequire_tool/utils.format.preserve_cursorfor cmds + Lua callbacks, documentedFormatHashes, and fix false “Format JSON: true” errors from misreading conform’s return value.:ColorSchemeSnacks picker; map blink.cmp<C-j>/<C-k>for suggestion navigation (keep arrows /<C-n>/<C-p>); track LazyVim sidekick extra inlazyvim.json.Test plan
:FormatJSONon a JSON file (e.g.lazyvim.json) — formats without error notification:FormatSQL/:FormatSQLFormatter/:FormatCss/:FormatXML— formats (or clear missing-tool install hint):RemoveExtraEmptyLinescollapses multi-blank runs to one;:RemoveEmptyLinesremoves all blanks (including whitespace-only) withoutPattern not found: ^$:UpdateRubyHashesByLines/:FormatHashes— rocket → new syntax, split}, {, single quotes, re-indent<C-j>/<C-k>move suggestions; arrows and<C-n>/<C-p>still work:ColorSchemeopens Snacks colorscheme pickermake testpasses