Skip to content

Commit

Permalink
初期構築時のエラーを解消
Browse files Browse the repository at this point in the history
  • Loading branch information
sfuruya0612 committed Dec 3, 2024
1 parent 17c2b79 commit ea0f5c6
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 33 deletions.
4 changes: 2 additions & 2 deletions main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
tags: homebrew
- role: vim
tags: vim
- role: tmux
tags: tmux
# - role: tmux
# tags: tmux
- role: zellij
tags: zellij
- role: alacritty
Expand Down
15 changes: 7 additions & 8 deletions roles/homebrew/defaults/main.yml
Original file line number Diff line number Diff line change
@@ -1,15 +1,11 @@
---
homebrew_taps:
- homebrew/cask
- homebrew/cask-fonts
- homebrew/cask-versions
- homebrew/core
- hashicorp/tap
- knqyf263/trivy
- weaveworks/tap

homebrew_cask_apps:
- alacritty
- clipy
- CotEditor
- font-hack-nerd-font
- google-chrome
Expand Down Expand Up @@ -39,16 +35,17 @@ homebrew_packages:
- fish
- fzf
- gawk
# GitHub CLI
- gh
- git
- git-delta
- goodwithtech/r/dockle
- gpg
- hashicorp/tap/terraform-ls
- terraform-ls
- httpie
- infracost
- jnv
- jq
- knqyf263/trivy/trivy
- trivy
- k6
- minikube
# asdf alternative
Expand All @@ -62,6 +59,8 @@ homebrew_packages:
- protobuf
- python3
# - reattach-to-user-namespace
# Launcher Tool
- raycast
- ripgrep
- starship
- stats
Expand Down
2 changes: 1 addition & 1 deletion roles/shell/templates/config.fish.j2
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ end

# Go path
set -x GOPATH $HOME/go
set -x PATH $PATH $GOPATH/bin
set -x PATH $GOPATH/bin $PATH

# Editors path
set -x EDITOR (brew --prefix)/bin/nvim
Expand Down
38 changes: 19 additions & 19 deletions roles/vim/files/copilot_chat_config.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ local actions = require("CopilotChat.actions")


require("CopilotChat").setup {
debug = true, -- Enable debugging
debug = true, -- Enable debugging

model = 'gpt-4', -- GPT model to use, 'gpt-3.5-turbo' or 'gpt-4'
temperature = 0.1, -- GPT temperature
model = 'gpt-4', -- GPT model to use, 'gpt-3.5-turbo' or 'gpt-4'
temperature = 0.1, -- GPT temperature

prompts = {
Explain = {
Expand All @@ -33,17 +33,17 @@ require("CopilotChat").setup {

-- default window options
window = {
layout = 'vertical', -- 'vertical', 'horizontal', 'float', 'replace'
width = 0.3, -- fractional width of parent, or absolute width in columns when > 1
height = 0.3, -- fractional height of parent, or absolute height in rows when > 1
layout = 'vertical', -- 'vertical', 'horizontal', 'float', 'replace'
width = 0.3, -- fractional width of parent, or absolute width in columns when > 1
height = 0.3, -- fractional height of parent, or absolute height in rows when > 1
-- Options below only apply to floating windows
relative = 'editor', -- 'editor', 'win', 'cursor', 'mouse'
border = 'single', -- 'none', single', 'double', 'rounded', 'solid', 'shadow'
row = nil, -- row position of the window, default is centered
col = nil, -- column position of the window, default is centered
title = 'Copilot Chat', -- title of chat window
footer = nil, -- footer of chat window
zindex = 1, -- determines if window is on top or below other floating windows
relative = 'editor', -- 'editor', 'win', 'cursor', 'mouse'
border = 'single', -- 'none', single', 'double', 'rounded', 'solid', 'shadow'
row = nil, -- row position of the window, default is centered
col = nil, -- column position of the window, default is centered
title = 'Copilot Chat', -- title of chat window
footer = nil, -- footer of chat window
zindex = 1, -- determines if window is on top or below other floating windows
},

-- default mappings
Expand Down Expand Up @@ -74,12 +74,12 @@ require("CopilotChat").setup {
show_diff = {
normal = 'gd'
},
show_system_prompt = {
normal = 'gp'
},
show_user_selection = {
normal = 'gs'
},
-- show_system_prompt = {
-- normal = 'gp'
-- },
-- show_user_selection = {
-- normal = 'gs'
-- },
},

}
Expand Down
4 changes: 1 addition & 3 deletions roles/zellij/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,8 @@
---
- name: Create ~/.config directories
ansible.builtin.file:
path: "{{ item }}"
path: "{{ ansible_env.HOME }}/.config/zellij"
state: directory
loop:
- "{{ ansible_env.HOME }}/.zellij"

- name: Unlink config file
ansible.builtin.file:
Expand Down

0 comments on commit ea0f5c6

Please sign in to comment.