2023-04-17 20:27:27 +00:00
|
|
|
{lib, ...}:
|
|
|
|
with lib; let
|
|
|
|
mkEnable = desc:
|
|
|
|
mkOption {
|
2023-04-17 22:11:02 +00:00
|
|
|
description = "Turn on ${desc} for enabled languages by default";
|
2023-04-17 20:27:27 +00:00
|
|
|
type = types.bool;
|
|
|
|
default = false;
|
|
|
|
};
|
|
|
|
in {
|
|
|
|
imports = [
|
2023-04-17 21:55:27 +00:00
|
|
|
./markdown
|
2023-04-17 21:38:57 +00:00
|
|
|
./tidal
|
2023-04-18 00:18:02 +00:00
|
|
|
./dart
|
|
|
|
./elixir
|
2023-04-17 21:38:57 +00:00
|
|
|
|
2023-04-17 20:27:27 +00:00
|
|
|
./clang.nix
|
|
|
|
./go.nix
|
|
|
|
./nix.nix
|
|
|
|
./python.nix
|
|
|
|
./rust.nix
|
|
|
|
./sql.nix
|
|
|
|
./ts.nix
|
|
|
|
./zig.nix
|
2023-04-17 22:05:18 +00:00
|
|
|
./html.nix
|
2023-06-03 14:18:26 +00:00
|
|
|
./svelte.nix
|
2023-08-09 04:41:48 +00:00
|
|
|
./java.nix
|
2023-09-23 13:36:26 +00:00
|
|
|
./lua.nix
|
2023-10-08 12:34:55 +00:00
|
|
|
./php.nix
|
2023-04-17 20:27:27 +00:00
|
|
|
];
|
|
|
|
|
|
|
|
options.vim.languages = {
|
|
|
|
enableLSP = mkEnable "LSP";
|
2023-05-05 14:16:16 +00:00
|
|
|
enableDAP = mkEnable "Debug Adapter";
|
2023-04-17 20:27:27 +00:00
|
|
|
enableTreesitter = mkEnable "treesitter";
|
|
|
|
enableFormat = mkEnable "formatting";
|
|
|
|
enableExtraDiagnostics = mkEnable "extra diagnostics";
|
|
|
|
};
|
|
|
|
}
|