diff --git a/.github/FUNDING.yml b/.github/FUNDING.yml index 97a82378..739d2d2c 100644 --- a/.github/FUNDING.yml +++ b/.github/FUNDING.yml @@ -1 +1,4 @@ github: NotAShelf +ko_fi: NotAShelf +liberapay: NotAShelf + diff --git a/docs/release-notes/rl-0.8.md b/docs/release-notes/rl-0.8.md index e854eebc..465bf5c9 100644 --- a/docs/release-notes/rl-0.8.md +++ b/docs/release-notes/rl-0.8.md @@ -26,11 +26,6 @@ - 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 diff --git a/modules/plugins/languages/nix.nix b/modules/plugins/languages/nix.nix index 4056a415..1120633c 100644 --- a/modules/plugins/languages/nix.nix +++ b/modules/plugins/languages/nix.nix @@ -187,6 +187,17 @@ 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 {