mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-22 21:30:51 +00:00
docs: update release notes
This commit is contained in:
parent
688bb8d9ba
commit
f429379e34
2 changed files with 23 additions and 18 deletions
|
@ -185,6 +185,7 @@ To migrate to `nixfmt`, simply change `vim.languages.nix.format.type` to
|
||||||
default.
|
default.
|
||||||
|
|
||||||
- Refactor of `nvim-cmp` and completion related modules
|
- Refactor of `nvim-cmp` and completion related modules
|
||||||
|
|
||||||
- Remove `autocomplete.type` in favor of per-plugin enable options such as
|
- Remove `autocomplete.type` in favor of per-plugin enable options such as
|
||||||
[](#opt-vim.autocomplete.nvim-cmp.enable).
|
[](#opt-vim.autocomplete.nvim-cmp.enable).
|
||||||
- Deprecate legacy Vimsnip in favor of Luasnip, and integrate
|
- Deprecate legacy Vimsnip in favor of Luasnip, and integrate
|
||||||
|
@ -277,9 +278,13 @@ To migrate to `nixfmt`, simply change `vim.languages.nix.format.type` to
|
||||||
configuration for [dashboard.nvim](https://github.com/nvimdev/dashboard-nvim)
|
configuration for [dashboard.nvim](https://github.com/nvimdev/dashboard-nvim)
|
||||||
|
|
||||||
- Update `lualine.nvim` input and add missing themes:
|
- Update `lualine.nvim` input and add missing themes:
|
||||||
|
|
||||||
- Adds `ayu`, `gruvbox_dark`, `iceberg`, `moonfly`, `onedark`,
|
- Adds `ayu`, `gruvbox_dark`, `iceberg`, `moonfly`, `onedark`,
|
||||||
`powerline_dark` and `solarized_light` themes.
|
`powerline_dark` and `solarized_light` themes.
|
||||||
|
|
||||||
|
- Add [](#opt-vim.spellcheck.extraSpellWords) to allow adding arbitrary
|
||||||
|
spellfiles to Neovim's runtime with ease.
|
||||||
|
|
||||||
[ppenguin](https://github.com/ppenguin):
|
[ppenguin](https://github.com/ppenguin):
|
||||||
|
|
||||||
- Telescope:
|
- Telescope:
|
||||||
|
|
|
@ -98,30 +98,30 @@ in {
|
||||||
config = mkIf cfg.enable {
|
config = mkIf cfg.enable {
|
||||||
vim = {
|
vim = {
|
||||||
additionalRuntimePaths = let
|
additionalRuntimePaths = let
|
||||||
spellfilesJoined = pkgs.symlinkJoin {
|
|
||||||
name = "nvf-spellfiles-joined";
|
|
||||||
paths = mapAttrsToList (name: value: pkgs.writeTextDir "spell/${name}.add" (concatLines value)) cfg.extraSpellWords;
|
|
||||||
postBuild = ''
|
|
||||||
echo "Spellfiles joined"
|
|
||||||
'';
|
|
||||||
};
|
|
||||||
|
|
||||||
compileJoinedSpellfiles =
|
compileJoinedSpellfiles =
|
||||||
pkgs.runCommandLocal "nvf-compile-spellfiles" {
|
pkgs.runCommandLocal "nvf-compile-spellfiles" {
|
||||||
# Use the same version of Neovim as the user's configuration
|
# Use the same version of Neovim as the user's configuration
|
||||||
nativeBuildInputs = [config.vim.package];
|
nativeBuildInputs = [config.vim.package];
|
||||||
} ''
|
|
||||||
mkdir -p "$out/spell"
|
|
||||||
|
|
||||||
spellfilesJoined=$(find -L "${spellfilesJoined}/spell" -type f)
|
spellfilesJoined = pkgs.symlinkJoin {
|
||||||
for spellfile in $spellfilesJoined; do
|
name = "nvf-spellfiles-joined";
|
||||||
# Hacky way to ensure that the mangled extensions are omitted from the
|
paths = mapAttrsToList (name: value: pkgs.writeTextDir "spell/${name}.add" (concatLines value)) cfg.extraSpellWords;
|
||||||
# joined spellfiles. E.g.
|
postBuild = "echo Spellfiles joined";
|
||||||
local name=$(basename "$spellfile" ".add")
|
};
|
||||||
|
} ''
|
||||||
|
# Fail on unset variables and non-zero exit codes
|
||||||
|
# this might be the only way to trace when `nvim --headless`
|
||||||
|
# fails in batch mode
|
||||||
|
set -eu
|
||||||
|
|
||||||
|
mkdir -p "$out/spell"
|
||||||
|
for spellfile in "$spellfilesJoined"/spell/*.add; do
|
||||||
|
name="$(basename "$spellfile" ".add")"
|
||||||
echo "Compiling spellfile: $spellfile"
|
echo "Compiling spellfile: $spellfile"
|
||||||
nvim --headless --clean \
|
nvim --headless --clean \
|
||||||
--cmd "mkspell $out/spell/$name.add.spl $spellfile" -Es -n
|
--cmd "mkspell $out/spell/$name.add.spl $spellfile" -Es -n
|
||||||
done
|
done
|
||||||
|
|
||||||
'';
|
'';
|
||||||
in
|
in
|
||||||
mkIf (cfg.extraSpellWords != {}) [
|
mkIf (cfg.extraSpellWords != {}) [
|
||||||
|
|
Loading…
Reference in a new issue