Skip to content

Commit

Permalink
🐞fix: windowsでのjob_startは拡張子つけたらいけた
Browse files Browse the repository at this point in the history
  • Loading branch information
utubo committed Nov 2, 2023
1 parent 19ed899 commit 2ab02e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 17 deletions.
15 changes: 5 additions & 10 deletions .vimrc
Original file line number Diff line number Diff line change
Expand Up @@ -329,18 +329,13 @@ diagSignWarningText: '🐝',
showDiagWithVirtualText: true,
diagVirtualTextAlign: 'after',
}
const lq = has('win32') ? '.cmd' : ''
var lspServers = [{
name: 'typescriptlang',
filetype: ['javascript', 'typescript'],
path: 'typescript-language-server',
path: $'typescript-language-server{lq}',
args: ['--stdio'],
}]
if has('win32')
for s in lspServers
s.args = ['/c', s.path]->extend(s.args)
s.path = 'cmd'
endfor
endif
au vimrc VimEnter * call LspOptionsSet(lspOptions)
au vimrc VimEnter * call LspAddServer(lspServers)
nn <F2> <Cmd>MRUToggle<CR>
Expand Down Expand Up @@ -429,9 +424,9 @@ CmdEach nnoremap,xnoremap <Space>c <Plug>(caw:hatpos:toggle)
CmdEach nnoremap,tnoremap <silent> <C-w><C-s> <Plug>(shrink-height)<C-w>w
CmdEach nnoremap,tnoremap <silent> <C-w><C-h> <Plug>(shrink-width)<C-w>w
no <Space>s <Plug>(jumpcursor-jump)
const lq = expand($'{lk}/pack/local/opt/*')
if lq !=# ''
&runtimepath = $'{substitute(lq, '\n', ',', 'g')},{&runtimepath}'
const lr = expand($'{lk}/pack/local/opt/*')
if lr !=# ''
&runtimepath = $'{substitute(lr, '\n', ',', 'g')},{&runtimepath}'
endif
g:vimhelpgenerator_version = ''
g:vimhelpgenerator_author = 'Author : utubo'
Expand Down
9 changes: 2 additions & 7 deletions src/.vimrc.src.vim
Original file line number Diff line number Diff line change
Expand Up @@ -419,18 +419,13 @@ var lspOptions = {
showDiagWithVirtualText: true,
diagVirtualTextAlign: 'after',
}
const commandExt = has('win32') ? '.cmd' : ''
var lspServers = [{
name: 'typescriptlang',
filetype: ['javascript', 'typescript'],
path: 'typescript-language-server',
path: $'typescript-language-server{commandExt}',
args: ['--stdio'],
}]
if has('win32')
for s in lspServers
s.args = ['/c', s.path]->extend(s.args)
s.path = 'cmd'
endfor
endif
au vimrc VimEnter * call LspOptionsSet(lspOptions)
au vimrc VimEnter * call LspAddServer(lspServers)
#}}}
Expand Down

0 comments on commit 2ab02e8

Please sign in to comment.