v2.0.0
Sorry to issue two releases in such a short interval, but we must update the major version as it introduces backward-incompatible changes.
We have completely reimplemented the project structure from scratch aiming to make the config clearer and easier to maintain. Refer to the 'SUMMARY' section for detailed instructions.
If you have problems migrating your configuration, feel free to open an issue at any time
SUMMARY
Have a look at the "What's Changed" section for minor fixes.
To complete your custom config migration, please follow the below steps:
X. For both situations
-
Please read through Wiki: Usage#structure and Wiki: Usage#how-to-customize to see how to customize plugins under the new structure. Changes all occur inside the
modules
folder. -
If you make changes to the configs of default plugins, use a diff-viewer (diffmerge is recommended) to compare your contents with those in
47b3f72
. Next, directly replace the entire function with your configs in the corresponding plugin's setup fileconfigs/<scope>/<plugin-name>.lua
OR directlyrequire
the config you have in thecustom
folder.
A. If you have customized plugins in the user
directory:
- Follow Wiki: Usage#add-a-new-plugin to split and migrate your plugins one by one.
B. If you add custom plugins directly after the default list:
- Sort out your custom plugins list and extract configs (functions) one by one. Then follow Wiki: Usage#add-a-new-plugin to migrate your plugins.
Several notes if you experience config breakages
lua/modules/configs
is now in the search path ofrequire
. So instead of requiringmodules.configs.completion.lsp
you should usecompletion.lsp
instead.- The
tools
folder was renamed totool
modules/ui/icons.lua
was moved tomodules/utils/icons.lua
. You need to updatelua
calls.- The
my-snippets
folder was renamed tosnips
- Debuggers and language servers now have their own config files. Specify them at the bottom of
configs/tool/dap/init.lua
and atmason_lspconfig.setup_handlers
inconfigs/completion/lsp.lua
. - Some plugins have their default location changed:
- completion
- not thing to change
- editor
- neoscroll -> ui
- smartyank -> tool
- specs -> ui
- toggleterm -> tool
- dap -> tool
- vim-im-select -> tool
- fugitive -> tool
- lang
- not thing to change
- tool
- not thing to change
- ui
- nvim-tree -> tool
What's Changed
- fix: Replace hard-coded highlight with palette's definition by @Jint-lzxy in #457
- chore(dap): add dap cpp args by @Groveer in #462
- fix(sniprun): show one line Ok output to floating window, add hint comment by @ayamir in 512d8d2
- fix: show cwd on windows correctly. by @ayamir in 09b2c74
- fix(README): Update install command for windows by @Jint-lzxy in 033f1cc
- fix(sqlite3): add custom path to fix sqlite3 lib issues on Windows by @CharlesChiuGit in 728421e
- chore(lspsaga): Adapt options from v2.3.6 by @Jint-lzxy in 966dfb6
- fix(telescope): Remove prompt prefix to align items by @Jint-lzxy in eeaaf18
- feat(keymap): make cursor can move in and out of terminal. by @ayamir in 5019271
- chore(lspsaga): Default selected item to replace faster by @Jint-lzxy in 47b3f72
- feat(cmp): Also compare scores returned by the server by @Jint-lzxy in #463
- feat(snippets): add header file definitions for cpp by @Groveer in #464
- chore(keymap): Reorganize definitions by @Jint-lzxy in #474
- fix(script-win): Avoid prompting for user input when failed by @Jint-lzxy in #475
- refactor(structure): structurize nvim config by @CharlesChiuGit in #458
New Contributors
Full Changelog: v1.0.0...v2.0.0