feat(nvim): add stylua and starship prompt
Fixes: GH-29
This commit is contained in:
parent
798e753cc5
commit
57f5cabf80
|
@ -18,6 +18,8 @@
|
|||
- role: npm
|
||||
- role: pv
|
||||
- role: ripgrep
|
||||
- role: starship-prompt
|
||||
- role: stylua
|
||||
- role: tldr
|
||||
- role: tree
|
||||
- role: tmux
|
||||
|
|
49
roles/starship-prompt/files/starship.toml
Normal file
49
roles/starship-prompt/files/starship.toml
Normal file
|
@ -0,0 +1,49 @@
|
|||
add_newline = false
|
||||
|
||||
[character]
|
||||
error_symbol = "[x](bold red)"
|
||||
success_symbol = "[>](bold green)"
|
||||
vicmd_symbol = "[<](bold green)"
|
||||
|
||||
[directory]
|
||||
disabled = false
|
||||
read_only = " ro"
|
||||
truncation_length = 8
|
||||
truncate_to_repo = true
|
||||
|
||||
[docker_context]
|
||||
format = 'via [$symbol]($style)'
|
||||
symbol = "docker "
|
||||
|
||||
[git_branch]
|
||||
symbol = "git "
|
||||
|
||||
[git_commit]
|
||||
tag_symbol = " tag "
|
||||
|
||||
[git_status]
|
||||
ahead = ">"
|
||||
behind = "<"
|
||||
deleted = "x"
|
||||
diverged = "<>"
|
||||
renamed = "r"
|
||||
|
||||
[memory_usage]
|
||||
symbol = "memory "
|
||||
|
||||
[nodejs]
|
||||
format = 'via [$symbol]($style)'
|
||||
symbol = "nodejs "
|
||||
|
||||
[package]
|
||||
symbol = "pkg "
|
||||
|
||||
[php]
|
||||
format = 'via [$symbol]($style)'
|
||||
symbol = "php "
|
||||
|
||||
[status]
|
||||
disabled=false
|
||||
|
||||
[sudo]
|
||||
symbol = "sudo "
|
14
roles/starship-prompt/tasks/main.yaml
Normal file
14
roles/starship-prompt/tasks/main.yaml
Normal file
|
@ -0,0 +1,14 @@
|
|||
---
|
||||
- name: Install
|
||||
community.general.cargo:
|
||||
name:
|
||||
- starship
|
||||
path: /usr/local
|
||||
state: latest
|
||||
become: true
|
||||
|
||||
- name: Config
|
||||
ansible.builtin.file:
|
||||
src: "{{ role_path }}/files/starship.toml"
|
||||
dest: "{{ ansible_user_dir }}/.config/starship.toml"
|
||||
state: link
|
8
roles/stylua/tasks/main.yaml
Normal file
8
roles/stylua/tasks/main.yaml
Normal file
|
@ -0,0 +1,8 @@
|
|||
---
|
||||
- name: Install
|
||||
community.general.cargo:
|
||||
name:
|
||||
- stylua
|
||||
path: /usr/local
|
||||
state: latest
|
||||
become: true
|
Loading…
Reference in a new issue