neovim-flake/modules/languages/default.nix
2023-04-18 01:05:18 +03:00

31 lines
585 B
Nix

{lib, ...}:
with lib; let
mkEnable = desc:
mkOption {
description = "Turn on ${desc} for enabled langauges by default";
type = types.bool;
default = false;
};
in {
imports = [
./markdown
./tidal
./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";
};
}