Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
f0a0b79
feat(rust): enable rustaceanvim
sjcobb2022 Jun 3, 2026
0a3b0cc
feat(rust): cleanup preset
sjcobb2022 Jun 3, 2026
911f442
feat(rust): add rust preset to list
sjcobb2022 Jun 3, 2026
23b3413
feat(rust): update main rust module
sjcobb2022 Jun 3, 2026
cc926ba
fmt
sjcobb2022 Jun 3, 2026
6044473
feat(rust): update rl-notes
sjcobb2022 Jun 3, 2026
fc9950a
feat(rust): some more comments
sjcobb2022 Jun 3, 2026
8a9bc1a
feat(rust): remove unused import
sjcobb2022 Jun 3, 2026
18548e0
feat(rust): fix most nits
sjcobb2022 Jun 5, 2026
32ed208
feat(rust): clean up core rust module
sjcobb2022 Jun 5, 2026
84a1b66
feat(rust): add to deprecations
sjcobb2022 Jun 5, 2026
7109ec7
feat(rust): remove now default settings
sjcobb2022 Jun 5, 2026
ac5827a
feat(rust): comment more thoroughly
sjcobb2022 Jun 5, 2026
ad13549
feat(rust): add assertion and comment on configuration
sjcobb2022 Jun 5, 2026
72d36ba
Merge branch 'main' into feat/rustaceanvim
sjcobb2022 Jun 5, 2026
1e9fe53
feat(rust): update comment
sjcobb2022 Jun 5, 2026
9852b32
feat(rust): add mkLspPresetOptionWithDesc and be more explicit with p…
sjcobb2022 Jun 5, 2026
dedbe5e
feat(rust): export properly
sjcobb2022 Jun 5, 2026
612c2d1
feat(rust): add better assertions
sjcobb2022 Jun 5, 2026
3382ea0
feat(rust): update capitilization
sjcobb2022 Jun 5, 2026
eaf6d63
feat(rust): remove hard dependency on cargo and rustc, use updated op…
sjcobb2022 Jun 5, 2026
9e3818e
feat(rust): clean assertion
sjcobb2022 Jun 6, 2026
ac4547b
feat(rust): fmt
sjcobb2022 Jun 9, 2026
c031ff9
feat(rust): various cleans
sjcobb2022 Jun 10, 2026
92343fc
feat(rust): correct genAttrs impl
sjcobb2022 Jun 11, 2026
644996b
use attrset for underlying lsp preset enable option
sjcobb2022 Jun 22, 2026
75452c6
Merge branch 'main' into feat/rustaceanvim
sjcobb2022 Jun 22, 2026
90e7e06
Merge branch 'main' of https://github.com/notashelf/nvf into feat/rus…
sjcobb2022 Jun 25, 2026
4308592
didn't catch this warning
sjcobb2022 Jun 25, 2026
b7d3837
rm filetypes line
sjcobb2022 Jun 25, 2026
9e27208
attempt at a codelldb setup
sjcobb2022 Jun 25, 2026
033ad54
add codelldb to module
sjcobb2022 Jun 25, 2026
e6abb35
try and implement default lddb setup for rust
sjcobb2022 Jun 25, 2026
9115d20
add deprecations
sjcobb2022 Jun 25, 2026
3528a32
add empty ft back
sjcobb2022 Jun 25, 2026
98b0371
get codelldb to work with server type
sjcobb2022 Jun 25, 2026
6d1216b
cleanup rust pkg
sjcobb2022 Jun 25, 2026
9247272
update deprecation
sjcobb2022 Jun 25, 2026
cf49109
use static codelldb setup
sjcobb2022 Jun 25, 2026
16daf8a
move to static codelldb instance
sjcobb2022 Jun 28, 2026
da6cc82
add dap assertion, update comments and debugger desc
sjcobb2022 Jun 28, 2026
57be6fb
Merge branch 'main' into feat/rustaceanvim
sjcobb2022 Jul 3, 2026
7f46ac6
feat(rustaceanvim): fixup bad rebase
sjcobb2022 Jul 3, 2026
a2f3792
feat(rustaceanvim): rm old comment
sjcobb2022 Jul 3, 2026
db98b63
feat(rustaceanvim): rename deprecations
sjcobb2022 Jul 3, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions configuration.nix
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ isMaximal: {
typst.enable = isMaximal;
rust = {
enable = isMaximal;
# Can only be enabled if lsp.enable = false
extensions.rustaceanvim.enable = false;
extensions.crates-nvim.enable = isMaximal;
};
toml.enable = isMaximal;
Expand Down
11 changes: 11 additions & 0 deletions docs/manual/release-notes/rl-0.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -149,6 +149,11 @@
- Turned `omnisharp-extended-lsp-nvim` into an extension disabled by default
- Turned `csharpls-extended-lsp-nvim` into an extension disabled by default

[sjcobb2022](https://github.com/caueanjos)

- Rust module is now no longer dependant on `rustaceanvim` by default. Use
`vim.languages.rust.extensions.rustaceanvim.enable` if needed.

## Changelog {#sec-release-0-9-changelog}

[bovf](https://github.com/bovf):
Expand Down Expand Up @@ -657,6 +662,12 @@ https://github.com/gorbit99/codewindow.nvim
- Add `prettier` and `prettierd` as supported formatters to
`vim.languages.json`.

[sjcobb2022](https://github.com/sjcobb2022)

- Modernize rust toolchain by defaulting to a `rustaceanvim` free default
configuration. Enabled via configuration
`vim.languages.rust.extensions.rustaceanvim.enable`.

[BrockoliniMorgan](https://github.com/BrockoliniMorgan)

- Renamed
Expand Down
2 changes: 1 addition & 1 deletion lib/types/default.nix
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ in {
inherit (typesDag) dagOf;
inherit (typesPlugin) pluginsOpt extraPluginType mkPluginSetupOption luaInline pluginType borderType;
inherit (typesLanguage) mkGrammarOption mkTreesitterGrammarOption;
inherit (typesLsp) mkLspPresetEnableOption;
inherit (typesLsp) mkLspPresetEnableOption mkLspPresetEnableOptionWith;
inherit (typesFormatter) mkFormatterPresetEnableOption;
inherit (typesDiagnostics) mkDiagnosticsPresetEnableOption;
inherit (customTypes) char hexColor mergelessListOf deprecatedSingleOrListOf enumWithRename;
Expand Down
36 changes: 29 additions & 7 deletions lib/types/lsp.nix
Original file line number Diff line number Diff line change
@@ -1,12 +1,34 @@
{lib}: let
inherit (lib.options) mkEnableOption;
inherit (lib.generators) toPretty;
inherit (lib.options) mkOption;
inherit (lib.strings) removeSuffix optionalString;
inherit (lib.types) bool;

mkLspPresetEnableOption = option: display: fileTypes:
mkEnableOption ''
the ${display} Language Server.
Default `filetypes = ${lib.generators.toPretty {} fileTypes}`.
Use {option}`vim.lsp.servers.${option}` for customization
'';
mkLspPresetEnableOptionWith {
inherit option display fileTypes;
description = "";
};

mkLspPresetEnableOptionWith = {
option,
display,
fileTypes,
description,
}:
mkOption {
type = bool;
default = false;
description = removeSuffix "\n" (''
The ${display} Language Server.
Default `filetypes = ${toPretty {} fileTypes}`.
Use {option}`vim.lsp.servers.${option}` for customization.
''
+ optionalString (description != "") ''

${description}
'');
};
in {
inherit mkLspPresetEnableOption;
inherit mkLspPresetEnableOption mkLspPresetEnableOptionWith;
}
12 changes: 12 additions & 0 deletions modules/extra/deprecations.nix
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,12 @@ in {
'')
]

# 2026-06-05
[
(mkRemovedLspPackage "rust")
(mkRemovedLspOpt "rust")
]

# 2026-06-12
[
(mkRemovedOptionModule ["vim" "languages" "sql" "dialect"] ''
Expand Down Expand Up @@ -439,5 +445,11 @@ in {
Use `vim.formatter.conform-nvim.setupOpts.formatters_by_ft.<ft> = ["<formatter>", ...]` to register extra formatters per filetype.
'')
]

# 2026-06-25
[
(mkRenamedOptionModule ["vim" "languages" "rust" "dap" "adapter"] ["vim" "languages" "rust" "dap" "debugger"])
(mkRenamedOptionModule ["vim" "languages" "rust" "dap" "package"] ["vim" "languages" "rust" "dap" "debugger"])
]
];
}
33 changes: 33 additions & 0 deletions modules/plugins/debugger/nvim-dap/presets/codelldb.nix
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
{
lib,
pkgs,
config,
...
}: let
inherit (lib.modules) mkIf;
inherit (lib.options) mkEnableOption;

cfg = config.vim.debugger.nvim-dap.presets.codelldb;
codelldb = pkgs.vscode-extensions.vadimcn.vscode-lldb.adapter;
in {
options.vim.debugger.nvim-dap.presets.codelldb = {
enable = mkEnableOption ''
adapter configuration for CodeLLDB using the vadimcn.vscode-lldb extension.
Use {option}`vim.debugger.nvim-dap.adapters.codelldb` for customization.

A configuration is also needed for your filetype in
{option}`vim.debugger.nvim-dap.configurations`
'';
};

config.vim.debugger.nvim-dap.adapters = mkIf cfg.enable {
codelldb = {
type = "server";
port = "\${port}";
executable = {
command = "${codelldb}/bin/codelldb";
args = ["--liblldb" "${codelldb}/share/lldb/lib/liblldb.so" "--port" "\${port}"];
};
};
};
}
1 change: 1 addition & 0 deletions modules/plugins/debugger/nvim-dap/presets/default.nix
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
imports = [
./codelldb.nix
./debugpy.nix
./jls.nix
./lldb.nix
Expand Down
Loading
Loading