From 3f08fd92a75f38bc984f0660cbb434c5fe203700 Mon Sep 17 00:00:00 2001 From: Shougo Matsushita Date: Wed, 17 Apr 2024 18:30:19 +0900 Subject: [PATCH] Remove normalized_name --- autoload/dpp/util.vim | 5 ++--- denops/dpp/deps.ts | 6 +++--- denops/dpp/types.ts | 1 - doc/dpp.txt | 18 ++++-------------- 4 files changed, 9 insertions(+), 21 deletions(-) diff --git a/autoload/dpp/util.vim b/autoload/dpp/util.vim index fc74120..51b3c73 100644 --- a/autoload/dpp/util.vim +++ b/autoload/dpp/util.vim @@ -164,9 +164,8 @@ function dpp#util#_clear_state(name) abort endfunction function dpp#util#_get_normalized_name(plugin) abort - return a:plugin->get('normalized_name', - \ a:plugin.name->fnamemodify(':r')->substitute( - \ '\c^\%(n\?vim\|dps\|denops\)[_-]\|[_-]n\?vim$', '', 'g')) + return a:plugin.name->fnamemodify(':r')->substitute( + \ '\c^\%(n\?vim\|dps\|denops\)[_-]\|[_-]n\?vim$', '', 'g') endfunction function dpp#util#_generate_ftplugin(runtimepath, ftplugin) abort diff --git a/denops/dpp/deps.ts b/denops/dpp/deps.ts index 69117da..cadec5a 100644 --- a/denops/dpp/deps.ts +++ b/denops/dpp/deps.ts @@ -16,7 +16,7 @@ export { assertEquals, assertInstanceOf, equal, -} from "https://deno.land/std@0.222.1/assert/mod.ts"; +} from "https://deno.land/std@0.223.0/assert/mod.ts"; export { basename, dirname, @@ -25,10 +25,10 @@ export { parse, SEPARATOR as pathsep, toFileUrl, -} from "https://deno.land/std@0.222.1/path/mod.ts"; +} from "https://deno.land/std@0.223.0/path/mod.ts"; export { deadline, DeadlineError, -} from "https://deno.land/std@0.222.1/async/mod.ts"; +} from "https://deno.land/std@0.223.0/async/mod.ts"; export { TimeoutError } from "https://deno.land/x/msgpack_rpc@v4.0.1/response_waiter.ts"; export { Lock } from "https://deno.land/x/async@v2.1.0/mod.ts"; diff --git a/denops/dpp/types.ts b/denops/dpp/types.ts index 0b0c776..c8abf22 100644 --- a/denops/dpp/types.ts +++ b/denops/dpp/types.ts @@ -105,7 +105,6 @@ export type Plugin = { merge_ftdetect?: string; merged?: boolean; name: string; - normalized_name?: string; on_cmd?: string | string[]; on_event?: string | string[]; on_ft?: string | string[]; diff --git a/doc/dpp.txt b/doc/dpp.txt index 8bc574d..8c83785 100644 --- a/doc/dpp.txt +++ b/doc/dpp.txt @@ -276,6 +276,10 @@ lazy (Bool) "dpp-ext-lazy". https://github.com/Shougo/dpp-ext-lazy + *dpp-plugin-option-local* +local (Bool) + If set to v:true, it is local installed plugin. + *dpp-plugin-option-merged* merged (Bool) If set to v:false, dpp doesn't merge the plugin directory. @@ -301,20 +305,6 @@ name (String) to conflict, you can set the "name" option manually to prevent overwriting an existing plugin setting. - *dpp-plugin-option-normalized_name* -normalized_name (String) - Specify the normalized name of the plugin. If omitted, dpp - will normalize the tail of the repository name. - NOTE: Must be unique across all plugins. - Normalized name example: - name : normalized name - - denite.nvim denite - dpp.vim dpp - vim-quickrun quickrun - dps-dial dial - denops-foo foo - *dpp-plugin-option-on_cmd* on_cmd (List) or (String) If it is matched to the executed command name, dpp will call