mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-01-16 07:27:47 +00:00
Compare commits
No commits in common. "8bc230bf0071879c0df37a075c2c907a5b15685d" and "48a74623d82e5ba3c42420a9faf13853778a8a63" have entirely different histories.
8bc230bf00
...
48a74623d8
4 changed files with 10 additions and 21 deletions
|
|
@ -81,16 +81,6 @@ favor of nixfmt (more information can be found
|
||||||
To migrate to `nixfmt`, simply change `vim.languages.nix.format.type` to
|
To migrate to `nixfmt`, simply change `vim.languages.nix.format.type` to
|
||||||
`nixfmt`.
|
`nixfmt`.
|
||||||
|
|
||||||
### leader changes {#sec-leader-changes}
|
|
||||||
|
|
||||||
This has been deprecated in favor of using the more generic `vim.globals` (you
|
|
||||||
can use `vim.globals.mapleader` to change this instead).
|
|
||||||
|
|
||||||
Rust specific keymaps now use `maplocalleader` instead of `localleader` by
|
|
||||||
default. This is to avoid conflicts with other modules. You can change
|
|
||||||
`maplocalleader` with `vim.globals.maplocalleader`, but it's recommended to set
|
|
||||||
it to something other than `mapleader` to avoid conflicts.
|
|
||||||
|
|
||||||
## Changelog {#sec-release-0.7-changelog}
|
## Changelog {#sec-release-0.7-changelog}
|
||||||
|
|
||||||
[ItsSorae](https://github.com/ItsSorae):
|
[ItsSorae](https://github.com/ItsSorae):
|
||||||
|
|
@ -211,8 +201,7 @@ it to something other than `mapleader` to avoid conflicts.
|
||||||
is bundled with nvf, if you enable the module, since there is no way to
|
is bundled with nvf, if you enable the module, since there is no way to
|
||||||
provide only the LSP server.
|
provide only the LSP server.
|
||||||
|
|
||||||
- Add [`run.nvim`](https://github.com/diniamo/run.nvim) support for running code
|
- Add [`run.nvim`](https://github.com/diniamo/run.nvim) support for running code using cached commands.
|
||||||
using cached commands.
|
|
||||||
|
|
||||||
[Neovim documentation on `vim.cmd`]: https://neovim.io/doc/user/lua.html#vim.cmd()
|
[Neovim documentation on `vim.cmd`]: https://neovim.io/doc/user/lua.html#vim.cmd()
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -59,10 +59,5 @@ in {
|
||||||
With Trouble having so many different modes, and breaking changes
|
With Trouble having so many different modes, and breaking changes
|
||||||
upstream, it no longer makes sense, nor works, to toggle only Trouble.
|
upstream, it no longer makes sense, nor works, to toggle only Trouble.
|
||||||
'')
|
'')
|
||||||
# 2024-11-30
|
|
||||||
(mkRemovedOptionModule ["vim" "leaderKey"] ''
|
|
||||||
This has been deprecated in favor of using the more generic `vim.globals`
|
|
||||||
(you can use `vim.globals.mapleader` to change this instead).
|
|
||||||
'')
|
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -14,6 +14,12 @@
|
||||||
cfg = config.vim;
|
cfg = config.vim;
|
||||||
in {
|
in {
|
||||||
options.vim = {
|
options.vim = {
|
||||||
|
leaderKey = mkOption {
|
||||||
|
type = str;
|
||||||
|
default = " ";
|
||||||
|
description = "The leader key used for `<leader>` mappings";
|
||||||
|
};
|
||||||
|
|
||||||
colourTerm = mkOption {
|
colourTerm = mkOption {
|
||||||
type = bool;
|
type = bool;
|
||||||
default = true;
|
default = true;
|
||||||
|
|
@ -191,6 +197,8 @@ in {
|
||||||
vim.o.tm = ${toLuaObject cfg.mapTimeout}
|
vim.o.tm = ${toLuaObject cfg.mapTimeout}
|
||||||
vim.o.cursorlineopt = ${toLuaObject cfg.cursorlineOpt}
|
vim.o.cursorlineopt = ${toLuaObject cfg.cursorlineOpt}
|
||||||
vim.o.scrolloff = ${toLuaObject cfg.scrollOffset}
|
vim.o.scrolloff = ${toLuaObject cfg.scrollOffset}
|
||||||
|
vim.g.mapleader = ${toLuaObject cfg.leaderKey}
|
||||||
|
vim.g.maplocalleader = ${toLuaObject cfg.leaderKey}
|
||||||
|
|
||||||
${optionalString cfg.undoFile.enable ''
|
${optionalString cfg.undoFile.enable ''
|
||||||
vim.o.undofile = true
|
vim.o.undofile = true
|
||||||
|
|
|
||||||
|
|
@ -101,10 +101,7 @@ in {
|
||||||
|
|
||||||
globals = mkOption {
|
globals = mkOption {
|
||||||
type = attrs;
|
type = attrs;
|
||||||
default = {
|
default = {};
|
||||||
mapleader = " ";
|
|
||||||
maplocalleader = ",";
|
|
||||||
};
|
|
||||||
example = {"some_variable" = 42;};
|
example = {"some_variable" = 42;};
|
||||||
description = ''
|
description = ''
|
||||||
An attribute set containing global variable values
|
An attribute set containing global variable values
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue