Skip to content

Commit

Permalink
Merge pull request #567 from NotAShelf/no-buffer-specific-opts
Browse files Browse the repository at this point in the history
languages/nix: remove hardcoded indentation options
  • Loading branch information
NotAShelf authored Jan 18, 2025
2 parents e7649d1 + 7d0c56d commit e51dce0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 11 deletions.
5 changes: 5 additions & 0 deletions docs/release-notes/rl-0.8.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
11 changes: 0 additions & 11 deletions modules/plugins/languages/nix.nix
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e51dce0

Please sign in to comment.