mirror of
https://github.com/NotAShelf/nvf.git
synced 2024-11-01 19:11:15 +00:00
34 lines
609 B
Nix
34 lines
609 B
Nix
{lib, ...}:
|
|
with lib; let
|
|
mkEnable = desc:
|
|
mkOption {
|
|
description = "Turn on ${desc} for enabled languages by default";
|
|
type = types.bool;
|
|
default = false;
|
|
};
|
|
in {
|
|
imports = [
|
|
./markdown
|
|
./tidal
|
|
./dart
|
|
./elixir
|
|
|
|
./clang.nix
|
|
./go.nix
|
|
./nix.nix
|
|
./python.nix
|
|
./rust.nix
|
|
./sql.nix
|
|
./ts.nix
|
|
./zig.nix
|
|
./html.nix
|
|
];
|
|
|
|
options.vim.languages = {
|
|
enableLSP = mkEnable "LSP";
|
|
enableTreesitter = mkEnable "treesitter";
|
|
enableFormat = mkEnable "formatting";
|
|
enableExtraDiagnostics = mkEnable "extra diagnostics";
|
|
};
|
|
}
|