1
0
Fork 0
mirror of https://github.com/NotAShelf/neovim-flake.git synced 2024-12-27 01:39:49 +01:00
neovim-flake/modules/languages/default.nix
2023-09-23 15:37:04 +02:00

37 lines
697 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
./svelte.nix
./java.nix
./lua.nix
];
options.vim.languages = {
enableLSP = mkEnable "LSP";
enableDAP = mkEnable "Debug Adapter";
enableTreesitter = mkEnable "treesitter";
enableFormat = mkEnable "formatting";
enableExtraDiagnostics = mkEnable "extra diagnostics";
};
}