Skip to content

Commit 7de4b62

Browse files
committed
just: Init - Fixing vim just detection.
1 parent f1b7121 commit 7de4b62

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

roles/just/tasks/MacOSX.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
---
2+
- name: "Just | Install Just"
3+
community.general.homebrew:
4+
name: just
5+
state: present
6+
update_homebrew: true

roles/just/tasks/main.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
- name: "{{ role_name }} | Checking for Distribution Config: {{ ansible_distribution }}"
2+
ansible.builtin.stat:
3+
path: "{{ role_path }}/tasks/{{ ansible_distribution }}.yml"
4+
register: distribution_config
5+
6+
- name: "{{ role_name }} | Run Tasks: {{ ansible_distribution }}"
7+
ansible.builtin.include_tasks: "{{ ansible_distribution }}.yml"
8+
when: distribution_config.stat.exists

roles/neovim/files/lua/plugins/filetype.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ return {
1313
bashrc = "sh",
1414
zsh = "sh",
1515
yml = "ansible",
16+
justfile = "just",
1617
},
1718
},
1819
},

roles/neovim/files/lua/techdufus/core/autocommands.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ vim.api.nvim_create_augroup('bufcheck', { clear = true })
1010
vim.cmd 'autocmd BufRead,BufNewFile *.yml set filetype=yaml.ansible'
1111
vim.cmd 'autocmd BufRead,BufNewFile .bashrc set filetype=sh'
1212
vim.cmd 'autocmd BufRead,BufNewFile *.hcl set filetype=terraform'
13+
vim.cmd 'autocmd BufRead,BufNewFile .justfile set filetype=just'
1314
-- reload config file on change
1415
vim.api.nvim_create_autocmd('BufWritePost', {
1516
group = 'bufcheck',

0 commit comments

Comments
 (0)