mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-16 07:27:47 +00:00
Merge branch 'NotAShelf:main' into feature/ruby
This commit is contained in:
commit
adf027b154
27 changed files with 511 additions and 139 deletions
|
|
@ -1,77 +0,0 @@
|
|||
[[ch-hm-module]]
|
||||
== Home Manager
|
||||
|
||||
The Home Manager module allows us to customize the different `vim` options. To use it, we first add the input flake.
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
neovim-flake = {
|
||||
url = github:notashelf/neovim-flake;
|
||||
# you can override input nixpkgs
|
||||
inputs.nixpkgs.follows = "nixpkgs";
|
||||
};
|
||||
}
|
||||
----
|
||||
|
||||
Followed by importing the HM module.
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
imports = [ neovim-flake.homeManagerModules.default ];
|
||||
}
|
||||
----
|
||||
|
||||
Then we should be able to use the given module. E.g.
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
programs.neovim-flake = {
|
||||
|
||||
enable = true;
|
||||
# your settings need to go into the settings attrset
|
||||
settings = {
|
||||
vim.viAlias = false;
|
||||
vim.vimAlias = true;
|
||||
vim.lsp = {
|
||||
enable = true;
|
||||
};
|
||||
};
|
||||
};
|
||||
}
|
||||
----
|
||||
|
||||
=== Custom vim plugins
|
||||
|
||||
It's possible to add custom vim plugins by using the startPlugins and lua DAG settings. First we install the plugin by adding it to startPlugins. This example uses nvim-surround, but the process will be similar for other plugins as well.
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
programs.neovim-flake = {
|
||||
enable = true;
|
||||
settings = {
|
||||
vim.startPlugins = [ pkgs.vimPlugins.nvim-surround ];
|
||||
};
|
||||
};
|
||||
}
|
||||
----
|
||||
|
||||
Then we continue by requiring the plugin in lua using DAG settings. Please note that you're able to name this setting to however you want, the name will add a `--SECTION <name>` in the init.vim, under which it will be initialized.
|
||||
|
||||
[source,nix]
|
||||
----
|
||||
{
|
||||
programs.neovim-flake = {
|
||||
enable = true;
|
||||
settings = {
|
||||
vim.startPlugins = [ pkgs.vimPlugins.nvim-surround ];
|
||||
luaConfigRC.nvim-surround = nvim-flake.lib.nvim.dag.entryAnywhere '' # nvim-flake is a reference to the flake. Please change this accordingly to your config.
|
||||
require("nvim-surround").setup()
|
||||
'';
|
||||
};
|
||||
};
|
||||
}
|
||||
----
|
||||
|
|
@ -65,7 +65,9 @@ https://github.com/notashelf[notashelf]:
|
|||
|
||||
* Added a module for enabling Neovim's spellchecker
|
||||
|
||||
* Replaced prettier with prettierd - the daemonized version of prettier
|
||||
* Added prettierd as an alternative formatter to prettier - currently defaults to prettier
|
||||
|
||||
* Fixed presence.nvim inheriting the wrong client id
|
||||
|
||||
* Cleaned up documentation
|
||||
|
||||
|
|
|
|||
21
docs/release-notes/rl-0.5.adoc
Normal file
21
docs/release-notes/rl-0.5.adoc
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
[[sec-release-0.5]]
|
||||
== Release 0.5
|
||||
|
||||
|
||||
[[sec-release-0.5-changelog]]
|
||||
=== Changelog
|
||||
|
||||
|
||||
https://github.com/horriblename[horriblename]:
|
||||
|
||||
* Add transparency support for tokyonight theme.
|
||||
|
||||
* Fix bug where cmp's close and scrollDocs mappings wasn't working.
|
||||
|
||||
https://github.com/amanse[amanse]:
|
||||
|
||||
* Add daily notes options for obsidian plugin
|
||||
|
||||
https://github.com/notashelf[notashelf]:
|
||||
|
||||
* Add GitHub Copilot to completion sources
|
||||
Loading…
Add table
Add a link
Reference in a new issue