feat: support justfiles

big ty for winston here
This commit is contained in:
isabel 2024-03-22 18:58:52 +00:00
parent 1b1fca045d
commit d45f991610
No known key found for this signature in database
GPG key ID: 5A87C993E20D89A1
5 changed files with 20 additions and 0 deletions

View file

@ -216,6 +216,10 @@ src.git = "https://github.com/mbbill/undotree"
fetch.github = "tpope/vim-fugitive"
src.git = "https://github.com/tpope/vim-fugitive"
[vim-just]
fetch.github = "NoahTheDuke/vim-just"
src.git = "https://github.com/NoahTheDuke/vim-just"
[which-key]
fetch.github = "folke/which-key.nvim"
src.git = "https://github.com/folke/which-key.nvim"

View file

@ -43,6 +43,7 @@
hlsl = {};
html = {};
javascript = {};
just = ts-generate;
jsdoc = {};
json = {};
jsonc = {};

View file

@ -370,6 +370,10 @@ src.git = "https://github.com/tree-sitter/tree-sitter-java"
fetch.git = "https://github.com/tree-sitter/tree-sitter-javascript"
src.git = "https://github.com/tree-sitter/tree-sitter-javascript"
[tree-sitter-grammar-just]
fetch.git = "https://github.com/IndianBoy42/tree-sitter-just"
src.git = "https://github.com/IndianBoy42/tree-sitter-just"
[tree-sitter-grammar-jq]
fetch.git = "https://github.com/flurie/tree-sitter-jq"
src.git = "https://github.com/flurie/tree-sitter-jq"

View file

@ -276,6 +276,7 @@ in rec {
# misc
undotree.src = srcs.undotree; # undo tree
vim-just.src = srcs.vim-just; # justfile support
wakatime = {
src = pkgs.vimPlugins.vim-wakatime; # track my time coding

View file

@ -1,6 +1,12 @@
return function()
local C = require("catppuccin.palettes").get_palette()
local justfile = {
icon = "󱚣",
name = "Justfile",
color = C.peach,
}
local devicons = require("nvim-web-devicons")
devicons.setup({
override_by_filename = {
@ -24,6 +30,10 @@ return function()
name = "LuacheckRC",
color = C.blue,
},
[".Justfile"] = justfile,
[".justfile"] = justfile,
["Justfile"] = justfile,
["justfile"] = justfile,
},
})
end