Skip to content

Commit

Permalink
(neovim) add support for justfiles
Browse files Browse the repository at this point in the history
  • Loading branch information
bigolu committed Oct 24, 2023
1 parent 360a6f3 commit ab9e83a
Show file tree
Hide file tree
Showing 5 changed files with 56 additions and 1 deletion.
3 changes: 3 additions & 0 deletions dotfiles/neovim/lua/terminal.lua
Original file line number Diff line number Diff line change
Expand Up @@ -1804,6 +1804,9 @@ Plug(
end,
}
)

-- For filetype detection
Plug('NoahTheDuke/vim-just')
-- }}}

-- File Explorer {{{
Expand Down
1 change: 1 addition & 0 deletions flake-modules/assign-inputs-to-host-managers.nix
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@
"nix-xdg"
"gomod2nix"
"speakers"
"tree-sitter-just"
] ++ plugins;
darwin = home ++ [
"nix-darwin"
Expand Down
17 changes: 16 additions & 1 deletion flake-modules/overlay.nix
Original file line number Diff line number Diff line change
Expand Up @@ -134,8 +134,23 @@
configureFlags = old.configureFlags ++ ["--enable-sixel"];
});

nvim-treesitter =
let
package = prev.vimPlugins.nvim-treesitter.withPlugins
(_:
prev.vimPlugins.nvim-treesitter.allGrammars ++ [
(final.tree-sitter.buildGrammar {
language = "just";
version = inputs.tree-sitter-just.rev;
src = inputs.tree-sitter-just;
})
]
);
in
package // {withAllGrammars = package;};

crossPlatformPackages = {
vimPlugins = allVimPlugins;
vimPlugins = allVimPlugins // { inherit nvim-treesitter; };
tmuxPlugins = allTmuxPlugins;
fishPlugins = allFishPlugins;
inherit pynix;
Expand Down
34 changes: 34 additions & 0 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions flake.nix
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,8 @@
"vim-plugin-nui-nvim" = {url = "github:MunifTanjim/nui.nvim"; flake = false;};
"vim-plugin-nvim-navic" = {url = "github:SmiteshP/nvim-navic"; flake = false;};
"vim-plugin-git-blame-nvim" = {url = "github:f-person/git-blame.nvim"; flake = false;};
"vim-plugin-vim-just" = {url = "github:NoahTheDuke/vim-just"; flake = false;};
"tree-sitter-just" = {url = "github:IndianBoy42/tree-sitter-just"; flake = false;};

"tmux-plugin-resurrect" = {url = "github:tmux-plugins/tmux-resurrect"; flake = false;};
"tmux-plugin-tmux-suspend" = {url = "github:MunifTanjim/tmux-suspend"; flake = false;};
Expand Down

0 comments on commit ab9e83a

Please sign in to comment.