This file contains hidden or 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
| param ( | |
| [string]$xlsmRelativePath | |
| ) | |
| # 相対パスを絶対パスに変換 | |
| $xlsmPath = [System.IO.Path]::GetFullPath([System.IO.Path]::Combine($PSScriptRoot, $xlsmRelativePath)) | |
| if ([System.IO.Path]::GetExtension($xlsmPath).ToLower() -ne ".xlsm") { | |
| Write-Host "エラー: 指定されたファイルは .xlsm ファイルではありません。" | |
| exit |
This file contains hidden or 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.loader.enable() | |
| -- mini.nvimのセットアップ | |
| local path_package = vim.fn.stdpath('data') .. '/site' | |
| local mini_path = path_package .. '/pack/deps/start/mini.nvim' | |
| if not vim.loop.fs_stat(mini_path) then | |
| vim.cmd('echo "Installing `mini.nvim`" | redraw') | |
| local clone_cmd = { | |
| 'git', 'clone', '--filter=blob:none', | |
| 'https://github.com/echasnovski/mini.nvim', mini_path |
This file contains hidden or 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
| local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" | |
| if not (vim.uv or vim.loop).fs_stat(lazypath) then | |
| local lazyrepo = "https://github.com/folke/lazy.nvim.git" | |
| local out = vim.fn.system({ "git", "clone", "--filter=blob:none", "--branch=stable", lazyrepo, lazypath }) | |
| if vim.v.shell_error ~= 0 then | |
| vim.api.nvim_echo({ | |
| { "Failed to clone lazy.nvim:\n", "ErrorMsg" }, | |
| { out, "WarningMsg" }, | |
| { "\nPress any key to exit..." }, | |
| }, true, {}) |