From 213a312bed03fe66add2e941055179aa08a39a20 Mon Sep 17 00:00:00 2001 From: David Ibia Date: Sun, 11 Feb 2024 21:29:57 +0100 Subject: [PATCH] feat(apple-pkl.lua): add plugin configuration for apple/pkl-neovim This commit adds a new Lua file `apple-pkl.lua` to the `absolute/plugins` directory. The file contains the configuration for the plugin `apple/pkl-neovim`. The configuration includes the following: - The plugin URL: `https://github.com/apple/pkl-neovim` - The plugin should be loaded lazily - The plugin should be triggered on the event "BufReadPre *.pkl" - The plugin has a dependency on `nvim-treesitter/nvim-treesitter` - The plugin build function installs the `pkl` language for Treesitter using the command `TSInstall! pkl` --- lua/absolute/plugins/apple-pkl.lua | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 lua/absolute/plugins/apple-pkl.lua diff --git a/lua/absolute/plugins/apple-pkl.lua b/lua/absolute/plugins/apple-pkl.lua new file mode 100644 index 0000000..ea9ea1d --- /dev/null +++ b/lua/absolute/plugins/apple-pkl.lua @@ -0,0 +1,11 @@ +return { + "https://github.com/apple/pkl-neovim", + lazy = true, + event = "BufReadPre *.pkl", + dependencies = { + "nvim-treesitter/nvim-treesitter", + }, + build = function() + vim.cmd("TSInstall! pkl") + end, +}