neovim-flake/modules/languages/default.nix

36 lines
668 B
Nix
Raw Permalink Normal View History

{lib, ...}:
with lib; let
mkEnable = desc:
mkOption {
description = "Turn on ${desc} for enabled languages by default";
type = types.bool;
default = false;
};
in {
imports = [
2023-04-17 23:55:27 +02:00
./markdown
./tidal
./dart
./elixir
./clang.nix
./go.nix
./nix.nix
./python.nix
./rust.nix
./sql.nix
./ts.nix
./zig.nix
2023-04-18 00:05:18 +02:00
./html.nix
2023-06-03 16:18:26 +02:00
./svelte.nix
];
options.vim.languages = {
enableLSP = mkEnable "LSP";
2023-05-05 16:16:16 +02:00
enableDAP = mkEnable "Debug Adapter";
enableTreesitter = mkEnable "treesitter";
enableFormat = mkEnable "formatting";
enableExtraDiagnostics = mkEnable "extra diagnostics";
};
}