This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// NOTE: This file is generated. Do NOT modify it manually. | |
// deno-lint-ignore-file camelcase | |
import type { Denops } from "https://deno.land/x/[email protected]/mod.ts"; | |
/** | |
* Return the absolute value of **{expr}**. When **{expr}** evaluates to | |
* a `Float` abs() returns a `Float`. When **{expr}** can be | |
* converted to a `Number` abs() returns a `Number`. Otherwise | |
* abs() gives an error message and returns -1. | |
* Examples: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// denops/@ddu-sources/callbackfreeze.ts | |
import { | |
BaseSource, | |
type GatherArguments, | |
type OnInitArguments, | |
} from "https://deno.land/x/[email protected]/base/source.ts"; | |
import { type Denops } from "https://deno.land/x/[email protected]/deps.ts"; | |
import type { Item } from "https://deno.land/x/[email protected]/types.ts"; | |
import * as lambda from "https://deno.land/x/[email protected]/lambda/mod.ts"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" autoload/my/ddu.vim | |
" | |
" plugins: | |
" https://github.com/Shougo/ddu.vim | |
" https://github.com/Shougo/ddu-filter-matcher_substring | |
" https://github.com/Shougo/ddu-ui-ff | |
" https://github.com/Shougo/ddu-kind-file | |
" https://github.com/shun/ddu-source-rg | |
let s:rg_highlights = { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
zstyle ':vcs_info:git+set-message:*' hooks git_compute_vars | |
function __git_eread() { | |
[[ -r "$1" ]] && IFS=$'\r\n' read "$2" <"$1" | |
} | |
function __git_config_hash() { | |
local _reg="$1" | |
local _out="$(git config -z --get-regexp "$_reg" 2>/dev/null|tr '\0\n' '\n ')" | |
local _k _v |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" autoload: my/lightline | |
function! my#lightline#setup(...) abort | |
let g:enable_powerline_font = get(g:, 'enable_powerline_font', | |
\ exists('$ENABLE_POWERLINE_FONT') && $ENABLE_POWERLINE_FONT !=# '') | |
if g:enable_powerline_font && exists('&ambiwidth') | |
set ambiwidth=double | |
endif | |
let c = g:enable_powerline_font ? | |
\ { 'Branch': "\ue0a0 ", 'LineNo': "\ue0a1", 'ReadOnly': "\ue0a2", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Vim plugin file - cdcurrent | |
" | |
" Purpose: Setup chdir commands | |
"============================================================================= | |
let s:is_windows = has('win32') || has('win64') | |
" cd to current file's directory | |
command! -bang Ccd call s:chdir_current('cd<bang>') | |
command! -bang Clcd call s:chdir_current('lcd<bang>') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Show hidden characters
{ | |
"root": true, | |
"env": { | |
"es6": true | |
}, | |
"extends": [ | |
"eslint:recommended", | |
"plugin:@typescript-eslint/eslint-recommended", | |
"plugin:@typescript-eslint/recommended", | |
"plugin:prettier/recommended", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
let g:netrw_open_custom_prog = '"vscode://file/%s"' | |
function! Netrw_open_custom(file) abort | |
let l:path = a:file | |
if exists('b:netrw_curdir') | |
let l:path = b:netrw_curdir . '/' . a:file | |
endif | |
if glob(l:path) != '' | |
execute '!start' printf(g:netrw_open_custom_prog, l:path) | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
" Fix <C-h> in Windows terminal (before set encoding) | |
" see: https://github.com/microsoft/terminal/issues/4397 | |
if !has('gui_running') && exists('$WT_SESSION') && !exists('$VIM_TERMINAL') | |
call map(['map', 'map!', 'tmap'], {_, map -> | |
\ execute(map.' '.nr2char(206).nr2char(3).nr2char(122)." \<C-h>") | |
\}) | |
endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@echo off | |
setlocal | |
set target=%~1 | |
if "" == "%target%" set target=. | |
if not "" == "%VIM_TERMINAL%" ( | |
echo | set /p=]51;["drop","%target:\=\\%"] | |
) else if not "" == "%VIM_SERVERNAME%" ( | |
gvim --servername %VIM_SERVERNAME% --remote-silent "%target%" |
NewerOlder