Skip to content

Commit

Permalink
fix deno
Browse files Browse the repository at this point in the history
  • Loading branch information
ShortArrow committed Feb 25, 2023
1 parent 1893be5 commit 724b711
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 30 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -11,3 +11,6 @@ hugo.linux

# Temporary lock file while building
/.hugo_build.lock

# neovim startup log
startup.log
10 changes: 10 additions & 0 deletions nvim/lua/my/lang/deno.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,16 @@ M.denols = {
}
}

M.has_deno_json = function()
local output = vim.fn.systemlist('git rev-parse --show-toplevel') -- プロジェクトルートのパスを取得
if vim.v.shell_error ~= 0 or #output == 0 then
return false
end

local package_json_path = table.concat({ output[1], 'deno.json' }, '/') -- パスを結合して deno.json のパスを作成
return vim.fn.filereadable(package_json_path) ~= 0 -- package.json が存在する場合は真を返す
end

M.get_deno_json_path = function()
local output = vim.fn.systemlist('git rev-parse --show-toplevel')
if vim.v.shell_error ~= 0 or #output == 0 then
Expand Down
30 changes: 0 additions & 30 deletions playground/linux/.dockerfile

This file was deleted.

6 changes: 6 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,12 @@ docker compose exec nvim /bin/bash -c nvim
1. install tmux
1. make symboliclink of tmux dotfile

## check startuptime

```
nvim --startuptime ./startup.log
```

## No Them No Life

- neovim
Expand Down

0 comments on commit 724b711

Please sign in to comment.