mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-27 03:47:37 +00:00
languages/typescript: rename languages/ts to languages/typescript and cleanup the module
This commit is contained in:
parent
30965edbb0
commit
83b753ba12
6 changed files with 18 additions and 12 deletions
|
|
@ -47,7 +47,7 @@ in {
|
|||
./svelte.nix
|
||||
./terraform.nix
|
||||
./toml.nix
|
||||
./ts.nix
|
||||
./typescript.nix
|
||||
./typst.nix
|
||||
./zig.nix
|
||||
./csharp.nix
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@
|
|||
inherit (lib.types) enum bool listOf;
|
||||
inherit (lib.nvim.attrsets) mapListToAttrs;
|
||||
inherit (lib.nvim.lua) toLuaObject;
|
||||
inherit (lib.nvim.types) mkGrammarOption diagnostics mkPluginSetupOption deprecatedSingleOrListOf enumWithRename;
|
||||
inherit (lib.nvim.types) mkGrammarOption diagnostics mkPluginSetupOption enumWithRename;
|
||||
inherit (lib.nvim.dag) entryAnywhere;
|
||||
|
||||
cfg = config.vim.languages.ts;
|
||||
cfg = config.vim.languages.typescript;
|
||||
|
||||
defaultServers = ["typescript-language-server"];
|
||||
servers = ["typescript-language-server" "deno" "typescript-go"];
|
||||
|
|
@ -74,8 +74,7 @@
|
|||
};
|
||||
};
|
||||
in {
|
||||
_file = ./ts.nix;
|
||||
options.vim.languages.ts = {
|
||||
options.vim.languages.typescript = {
|
||||
enable = mkEnableOption "Typescript/Javascript language support";
|
||||
|
||||
treesitter = {
|
||||
|
|
@ -122,7 +121,7 @@ in {
|
|||
|
||||
type = mkOption {
|
||||
description = "Typescript/Javascript formatter to use";
|
||||
type = deprecatedSingleOrListOf "vim.language.ts.format.type" (enum (attrNames formats));
|
||||
type = listOf (enum (attrNames formats));
|
||||
default = defaultFormat;
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue