From 420082852636b812c9e9c6bdd4b6ecdc072030b6 Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 18 Jan 2025 20:19:08 +0300 Subject: [PATCH 1/2] languages/nix: remove hardcoded indentation options --- modules/plugins/languages/nix.nix | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/modules/plugins/languages/nix.nix b/modules/plugins/languages/nix.nix index 1120633c..4056a415 100644 --- a/modules/plugins/languages/nix.nix +++ b/modules/plugins/languages/nix.nix @@ -187,17 +187,6 @@ in { ''; } ]; - vim.pluginRC.nix = '' - vim.api.nvim_create_autocmd("FileType", { - pattern = "nix", - callback = function(opts) - local bo = vim.bo[opts.buf] - bo.tabstop = 2 - bo.shiftwidth = 2 - bo.softtabstop = 2 - end - }) - ''; } (mkIf cfg.treesitter.enable { From 7d0c56d74cd1ecbc5e01d14d81941708619e1aed Mon Sep 17 00:00:00 2001 From: NotAShelf Date: Sat, 18 Jan 2025 20:20:15 +0300 Subject: [PATCH 2/2] docs: update v0.8 release notes --- docs/release-notes/rl-0.8.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/docs/release-notes/rl-0.8.md b/docs/release-notes/rl-0.8.md index 465bf5c9..e854eebc 100644 --- a/docs/release-notes/rl-0.8.md +++ b/docs/release-notes/rl-0.8.md @@ -26,6 +26,11 @@ - Deprecate rnix-lsp as it has been abandoned and archived upstream. +- Hardcoded indentation values for the Nix language module have been removed. To + replicate previous behaviour, you must either consolidate Nix indentation in + your Editorconfig configuration, or use an autocommand to set indentation + values for buffers with the Nix filetype. + [amadaluzia](https://github.com/amadaluzia): [haskell-tools.nvim]: https://github.com/MrcJkb/haskell-tools.nvim