Skip to content

Commit

Permalink
Remove normalized_name
Browse files Browse the repository at this point in the history
  • Loading branch information
Shougo committed Apr 17, 2024
1 parent c7fb175 commit 3f08fd9
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 21 deletions.
5 changes: 2 additions & 3 deletions autoload/dpp/util.vim
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 3 additions & 3 deletions denops/dpp/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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/[email protected]/response_waiter.ts";
export { Lock } from "https://deno.land/x/[email protected]/mod.ts";
1 change: 0 additions & 1 deletion denops/dpp/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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[];
Expand Down
18 changes: 4 additions & 14 deletions doc/dpp.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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
Expand Down

0 comments on commit 3f08fd9

Please sign in to comment.