mirror of
https://github.com/NotAShelf/neovim-flake.git
synced 2025-02-04 17:59:49 +01:00
Merge pull request #567 from NotAShelf/no-buffer-specific-opts
languages/nix: remove hardcoded indentation options
This commit is contained in:
commit
e51dce002e
2 changed files with 5 additions and 11 deletions
|
@ -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
|
||||
|
|
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue