2023-12-31 08:07:30 +01:00
|
|
|
# Release 0.6 {#sec-release-0.6}
|
|
|
|
|
|
|
|
Release notes for release 0.6
|
|
|
|
|
2024-04-20 15:17:50 +02:00
|
|
|
## Breaking Changes and Migration Guide {#sec-breaking-changes-and-migration-guide}
|
2024-04-20 02:53:59 +02:00
|
|
|
|
|
|
|
In v0.6 we are introducing `setupOpts`: many plugin related options are moved into their respective `setupOpts`
|
|
|
|
submodule, e.g. `nvimTree.disableNetrw` is renamed to `nvimTree.setupOpts.disable_netrw`.
|
|
|
|
|
|
|
|
_Why?_ in short, you can now pass in anything to setupOpts and it will be passed to your `require'plugin'.setup{...}`.
|
|
|
|
No need to wait for us to support every single plugin option.
|
|
|
|
|
|
|
|
The warnings when you rebuild your config should be enough to guide you through what you need to do, if there's an
|
|
|
|
option that was renamed but wasn't listed in the warning, please file a bug report!
|
|
|
|
|
|
|
|
To make your migration process less annoying, here's a keybind that will help you with renaming stuff from camelCase to
|
|
|
|
snake_case (you'll be doing that a lot):
|
|
|
|
|
|
|
|
```lua
|
|
|
|
-- paste this in a temp.lua file and load it in vim with :source /path/to/temp.lua
|
|
|
|
function camelToSnake()
|
|
|
|
-- Get the current word under the cursor
|
|
|
|
local word = vim.fn.expand("<cword>")
|
|
|
|
-- Replace each capital letter with an underscore followed by its lowercase equivalent
|
|
|
|
local snakeCase = string.gsub(word, "%u", function(match)
|
|
|
|
return "_" .. string.lower(match)
|
|
|
|
end)
|
|
|
|
-- Remove the leading underscore if present
|
|
|
|
if string.sub(snakeCase, 1, 1) == "_" then
|
|
|
|
snakeCase = string.sub(snakeCase, 2)
|
|
|
|
end
|
|
|
|
vim.fn.setreg(vim.v.register, snakeCase)
|
|
|
|
-- Select the word under the cursor and paste
|
|
|
|
vim.cmd("normal! viwP")
|
|
|
|
end
|
|
|
|
|
|
|
|
vim.api.nvim_set_keymap('n', '<leader>a', ':lua camelToSnake()<CR>', { noremap = true, silent = true })
|
|
|
|
```
|
|
|
|
|
2023-12-31 08:07:30 +01:00
|
|
|
## Changelog {#sec-release-0.6-changelog}
|
|
|
|
|
|
|
|
[ksonj](https://github.com/ksonj):
|
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Added Terraform language support.
|
|
|
|
|
|
|
|
- Added `ChatGPT.nvim`, which can be enabled with [`vim.assistant.chatgpt`](vim.assistant.chatgpt). Do
|
|
|
|
keep in mind that this option requires `OPENAI_API_KEY` environment variable to be set.
|
2023-12-31 08:07:30 +01:00
|
|
|
|
2024-04-14 14:36:23 +02:00
|
|
|
[donnerinoern](https://github.com/donnerinoern):
|
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Added Gruvbox theme.
|
2024-04-14 14:36:23 +02:00
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Added marksman LSP for Markdown.
|
2024-04-14 14:36:23 +02:00
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Fixed markdown preview with Glow not working and added an option for changing the preview keybind.
|
2024-04-14 14:36:23 +02:00
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- colorizer.nvim: switched to a maintained fork.
|
2024-04-14 14:36:23 +02:00
|
|
|
|
|
|
|
- Added `markdown-preview.nvim`, moved `glow.nvim` to a brand new `vim.utility.preview` category.
|
|
|
|
|
|
|
|
[elijahimmer](https://github.com/elijahimmer)
|
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Added rose-pine theme.
|
2024-04-14 14:36:23 +02:00
|
|
|
|
2024-04-20 17:19:21 +02:00
|
|
|
[jacekpoz](https://github.com/jacekpoz):
|
|
|
|
|
|
|
|
- Added `vim.autocomplete.alwaysComplete`. Allows users to have the autocomplete window popup only when manually activated.
|
|
|
|
|
2023-12-31 08:07:30 +01:00
|
|
|
[horriblename](https://github.com/horriblename):
|
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Fixed empty winbar when breadcrumbs are disabled.
|
2023-12-31 08:07:30 +01:00
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Added custom `setupOpts` for various plugins.
|
2024-04-06 21:58:43 +02:00
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Removed support for deprecated plugin "nvim-compe".
|
2024-04-06 21:58:43 +02:00
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Moved most plugins to `setupOpts` method.
|
2024-01-26 19:16:56 +01:00
|
|
|
|
2024-04-14 14:36:23 +02:00
|
|
|
[frothymarrow](https://github.com/frothymarrow):
|
2024-01-26 19:16:56 +01:00
|
|
|
|
2024-04-14 14:36:23 +02:00
|
|
|
- Added option `vim.luaPackages` to wrap neovim with extra Lua packages.
|
2024-01-26 19:16:56 +01:00
|
|
|
|
2024-04-14 14:36:23 +02:00
|
|
|
- Rewrote the entire `fidget.nvim` module to include extensive configuration options. Option `vim.fidget-nvim.align.bottom` has
|
|
|
|
been removed in favor of [vim.fidget-nvim.notification.window.align](vim.fidget-nvim.notification.window.align), which now supports
|
|
|
|
`top` and `bottom` values. `vim.fidget-nvim.align.right` has no longer any equivalent and also has been removed.
|
2024-01-26 19:16:56 +01:00
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- `which-key.nvim` categories can now be customized through [vim.binds.whichKey.register](vim.binds.whichKey.register)
|
2024-02-10 02:04:51 +01:00
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Added `magick` to `vim.luaPackages` for `image.nvim`.
|
2024-04-14 14:36:23 +02:00
|
|
|
|
|
|
|
- Added `alejandra` to the default devShell.
|
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Migrated neovim-flake to `makeNeovimUnstable` wrapper.
|
2024-02-15 07:16:22 +01:00
|
|
|
|
2023-12-31 08:07:30 +01:00
|
|
|
[notashelf](https://github.com/notashelf):
|
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Finished moving to `nixosOptionsDoc` in the documentation and changelog. All documentation options
|
|
|
|
and files are fully free of Asciidoc, and will now use Nixpkgs flavored markdown.
|
2023-12-31 08:07:30 +01:00
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Bumped plugin inputs to their latest versions.
|
2024-01-12 18:34:37 +01:00
|
|
|
|
|
|
|
- Deprecated `presence.nvim` in favor of `neocord`. This means `vim.rich-presence.presence-nvim` is removed and will throw
|
2024-04-21 04:27:08 +02:00
|
|
|
a warning if used. You are recommended to rewrite your neocord configuration from scratch based on the.
|
2024-01-12 18:34:37 +01:00
|
|
|
[official documentation](https://github.com/IogaMaster/neocord)
|
2024-01-17 21:08:36 +01:00
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Removed Tabnine plugin due to the usage of imperative tarball downloads. If you'd like to see it back, please create an issue.
|
2024-04-14 14:36:23 +02:00
|
|
|
|
2024-01-24 18:39:07 +01:00
|
|
|
- Added support for css and tailwindcss through vscode-language-servers-extracted & tailwind-language-server.
|
2024-04-21 04:27:08 +02:00
|
|
|
Those can be enabled through `vim.languages.css` and `vim.languages.tailwind`.
|
2024-01-24 18:39:07 +01:00
|
|
|
|
2024-01-26 19:16:56 +01:00
|
|
|
- Lualine module now allows customizing `always_divide_middle`, `ignore_focus` and `disabled_filetypes` through the new
|
|
|
|
options: [vim.statusline.lualine.alwaysDivideMiddle](vim.statusline.lualine.alwaysDivideMiddle),
|
|
|
|
[vim.statusline.lualine.ignoreFocus](vim.statusline.lualine.ignoreFocus) and
|
2024-04-21 04:27:08 +02:00
|
|
|
[vim.statusline.lualine.disabledFiletypes](vim.statusline.lualine.disabledFiletypes).
|
2024-01-18 19:40:27 +01:00
|
|
|
|
2024-04-21 04:27:08 +02:00
|
|
|
- Updated all plugin inputs to their latest versions (**21.04.2024**) - this brought minor color changes to the Catppuccin
|
2024-04-14 14:36:23 +02:00
|
|
|
theme.
|
2024-02-13 21:41:13 +01:00
|
|
|
|
2024-04-14 14:36:23 +02:00
|
|
|
- Moved home-manager module entrypoint to `flake/modules` and added an experimental Nixos module. This requires further testing
|
|
|
|
before it can be considered ready for use.
|
2024-02-13 21:41:13 +01:00
|
|
|
|
2024-04-14 14:36:23 +02:00
|
|
|
- Made lib calls explicit. E.g. `lib.strings.optionalString` instead of `lib.optionalString`. This is a pattern expected
|
|
|
|
to be followed by all contributors in the future.
|
2024-02-18 00:10:06 +01:00
|
|
|
|
2024-04-14 14:36:23 +02:00
|
|
|
- Added `image.nvim` for image previews.
|
2024-02-18 00:10:06 +01:00
|
|
|
|
2024-04-14 14:36:23 +02:00
|
|
|
- The final neovim package is now exposed. This means you can build the neovim package that will be added to your
|
|
|
|
package list without rebuilding your system to test if your configuration yields a broken package.
|
2024-02-19 07:58:41 +01:00
|
|
|
|
2024-04-14 14:36:23 +02:00
|
|
|
- Changed the tree structure to distinguish between core options and plugin options.
|
2024-02-25 17:49:43 +01:00
|
|
|
|
2024-04-14 14:36:23 +02:00
|
|
|
- Added plugin auto-discovery from plugin inputs. This is mostly from
|
2024-04-20 17:19:21 +02:00
|
|
|
[JordanIsaac's neovim-flake](https://github.com/jordanisaacs/neovim-flake). Allows contributors to add plugin inputs
|
|
|
|
with the `plugin-` prefix to have them automatically discovered for the `plugin` type in `lib/types`.
|
2024-04-14 22:10:41 +02:00
|
|
|
|
2024-04-17 02:25:04 +02:00
|
|
|
- Moved internal `wrapLuaConfig` to the extended library, structured its arguments to take `luaBefore`, `luaConfig`
|
|
|
|
and `luaAfter` as strings, which are then concatted inside a lua block.
|
|
|
|
|
|
|
|
- Added [`vim.luaConfigBefore`](vim.luaConfigBefore) and [`vim.luaConfigAfter`](vim.luaConfigAfter)
|
|
|
|
for inserting verbatim Lua configuration before and after the resolved Lua DAG respectively. Both of those options
|
|
|
|
take strings as the type, so you may read the contents of a Lua file from a given path.
|
|
|
|
|
2024-04-20 17:19:21 +02:00
|
|
|
- Added [`vim.spellChecking.ignoredFiletypes`](vim.spellChecking.ignoredFiletypes)
|
|
|
|
and [`vim.spellChecking.programmingWordlist.enable`](vim.spellChecking.programmingWordlist.enable) for ignoring certain filetypes
|
|
|
|
in spellchecking and enabling `vim-dirtytalk` respectively. The previously used `vim.spellcheck.vim-dirtytalk` aliases to the latter
|
|
|
|
option.
|
2024-04-21 02:28:35 +02:00
|
|
|
|
|
|
|
- Exposed `withRuby`, `withNodeJs`, `withPython3`, and `python3Packages` from the `makeNeovimConfig` function under their respective options.
|
|
|
|
|
|
|
|
- Added [`vim.extraPackages`](vim.extraPackages) for appending additional packages to the wrapper PATH, making said packages available
|
|
|
|
while inside the Neovim session.
|
2024-04-26 23:21:55 +02:00
|
|
|
|
|
|
|
- Made treesitter options configurable, and moved `treesitter-context to
|
|
|
|
`setupOpts` while it is enabled.
|
|
|
|
|
|
|
|
- Added `vim.notify.nvim-notify.setupOpts.render` which takes either a string of enum or
|
|
|
|
a lua function. The default is "compact", but you may change it according to
|
|
|
|
nvim-notify documentation.
|