Skip to content

Commit

Permalink
just: Init - Fixing vim just detection.
Browse files Browse the repository at this point in the history
  • Loading branch information
TechDufus committed Jan 2, 2025
1 parent f1b7121 commit 7de4b62
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 0 deletions.
6 changes: 6 additions & 0 deletions roles/just/tasks/MacOSX.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
---
- name: "Just | Install Just"
community.general.homebrew:
name: just
state: present
update_homebrew: true
8 changes: 8 additions & 0 deletions roles/just/tasks/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
- name: "{{ role_name }} | Checking for Distribution Config: {{ ansible_distribution }}"
ansible.builtin.stat:
path: "{{ role_path }}/tasks/{{ ansible_distribution }}.yml"
register: distribution_config

- name: "{{ role_name }} | Run Tasks: {{ ansible_distribution }}"
ansible.builtin.include_tasks: "{{ ansible_distribution }}.yml"
when: distribution_config.stat.exists
1 change: 1 addition & 0 deletions roles/neovim/files/lua/plugins/filetype.lua
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ return {
bashrc = "sh",
zsh = "sh",
yml = "ansible",
justfile = "just",
},
},
},
Expand Down
1 change: 1 addition & 0 deletions roles/neovim/files/lua/techdufus/core/autocommands.lua
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ vim.api.nvim_create_augroup('bufcheck', { clear = true })
vim.cmd 'autocmd BufRead,BufNewFile *.yml set filetype=yaml.ansible'
vim.cmd 'autocmd BufRead,BufNewFile .bashrc set filetype=sh'
vim.cmd 'autocmd BufRead,BufNewFile *.hcl set filetype=terraform'
vim.cmd 'autocmd BufRead,BufNewFile .justfile set filetype=just'
-- reload config file on change
vim.api.nvim_create_autocmd('BufWritePost', {
group = 'bufcheck',
Expand Down

0 comments on commit 7de4b62

Please sign in to comment.