mirror of
https://github.com/NotAShelf/nvf.git
synced 2025-02-23 20:08:30 +00:00
Compare commits
3 commits
11f6b08e41
...
8d8ba258f5
Author | SHA1 | Date | |
---|---|---|---|
![]() |
8d8ba258f5 | ||
3cba3ca30c | |||
![]() |
8a2e721e00 |
3 changed files with 12 additions and 8 deletions
|
@ -39,6 +39,10 @@ everyone.
|
|||
|
||||
## Changelog {#sec-release-0.7-changelog}
|
||||
|
||||
[nezia1](https://github.com/nezia1):
|
||||
|
||||
- Replace [nixpkgs-fmt](https://github.com/nix-community/nixpkgs-fmt) with [nixfmt](https://github.com/NixOS/nixfmt) (nixfmt-rfc-style).
|
||||
|
||||
[ItsSorae](https://github.com/ItsSorae):
|
||||
|
||||
- Add support for [typst](https://typst.app/) under `vim.languages.typst` This
|
||||
|
|
|
@ -27,12 +27,12 @@
|
|||
servers = {
|
||||
rnix = {
|
||||
package = pkgs.rnix-lsp;
|
||||
internalFormatter = cfg.format.type == "nixpkgs-fmt";
|
||||
internalFormatter = cfg.format.type == "nixfmt";
|
||||
lspConfig = ''
|
||||
lspconfig.rnix.setup{
|
||||
capabilities = capabilities,
|
||||
${
|
||||
if (cfg.format.enable && cfg.format.type == "nixpkgs-fmt")
|
||||
if (cfg.format.enable && cfg.format.type == "nixfmt")
|
||||
then useFormat
|
||||
else noFormat
|
||||
},
|
||||
|
@ -62,10 +62,10 @@
|
|||
command = {"${cfg.format.package}/bin/alejandra", "--quiet"},
|
||||
},
|
||||
''}
|
||||
${optionalString (cfg.format.type == "nixpkgs-fmt")
|
||||
${optionalString (cfg.format.type == "nixfmt")
|
||||
''
|
||||
formatting = {
|
||||
command = {"${cfg.format.package}/bin/nixpkgs-fmt"},
|
||||
command = {"${cfg.format.package}/bin/nixfmt"},
|
||||
},
|
||||
''}
|
||||
},
|
||||
|
@ -90,9 +90,9 @@
|
|||
'';
|
||||
};
|
||||
|
||||
nixpkgs-fmt = {
|
||||
package = pkgs.nixpkgs-fmt;
|
||||
# Never need to use null-ls for nixpkgs-fmt
|
||||
nixfmt = {
|
||||
package = pkgs.nixfmt-rfc-style;
|
||||
# Never need to use null-ls for nixfmt
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -224,7 +224,7 @@ in {
|
|||
local buf_ft = vim.api.nvim_get_option_value('filetype', {})
|
||||
|
||||
-- List of buffer types to exclude
|
||||
local excluded_buf_ft = {"toggleterm", "NvimTree", "TelescopePrompt"}
|
||||
local excluded_buf_ft = {"toggleterm", "NvimTree", "neo-tree", "TelescopePrompt"}
|
||||
|
||||
-- Check if the current buffer type is in the excluded list
|
||||
for _, excluded_type in ipairs(excluded_buf_ft) do
|
||||
|
|
Loading…
Add table
Reference in a new issue