feat(nvim): add stylua and starship prompt

Fixes: GH-29
This commit is contained in:
Oliver Davies 2022-04-07 11:29:59 +01:00
parent 798e753cc5
commit 57f5cabf80
4 changed files with 73 additions and 0 deletions

View file

@ -18,6 +18,8 @@
- role: npm
- role: pv
- role: ripgrep
- role: starship-prompt
- role: stylua
- role: tldr
- role: tree
- role: tmux

View 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 "

View 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

View file

@ -0,0 +1,8 @@
---
- name: Install
community.general.cargo:
name:
- stylua
path: /usr/local
state: latest
become: true