From 0c9fa19c8f9881f8cbab5b8fb332f5261f3b7c19 Mon Sep 17 00:00:00 2001 From: Joshua <67082011+0x4D5352@users.noreply.github.com> Date: Mon, 29 Apr 2024 18:00:00 -0500 Subject: [PATCH] add custom plugins --- lua/custom/plugins/copilot-cmp.lua | 6 ++++++ lua/custom/plugins/copilot.lua | 7 +++++++ lua/custom/plugins/harpoon.lua | 9 +++++++++ lua/custom/plugins/pkl-ls.lua | 18 ++++++++++++++++++ lua/custom/plugins/pkl-neovim.lua | 7 +++++++ lua/custom/plugins/vim-be-good.lua | 3 +++ lua/custom/plugins/zellij-nav.lua | 22 ++++++++++++++++++++++ 7 files changed, 72 insertions(+) create mode 100644 lua/custom/plugins/copilot-cmp.lua create mode 100644 lua/custom/plugins/copilot.lua create mode 100644 lua/custom/plugins/harpoon.lua create mode 100644 lua/custom/plugins/pkl-ls.lua create mode 100644 lua/custom/plugins/pkl-neovim.lua create mode 100644 lua/custom/plugins/vim-be-good.lua create mode 100644 lua/custom/plugins/zellij-nav.lua diff --git a/lua/custom/plugins/copilot-cmp.lua b/lua/custom/plugins/copilot-cmp.lua new file mode 100644 index 00000000..f0adb7a6 --- /dev/null +++ b/lua/custom/plugins/copilot-cmp.lua @@ -0,0 +1,6 @@ +return { + 'zbirenbaum/copilot-cmp', + config = function() + require('copilot_cmp').setup() + end, +} diff --git a/lua/custom/plugins/copilot.lua b/lua/custom/plugins/copilot.lua new file mode 100644 index 00000000..23c3a554 --- /dev/null +++ b/lua/custom/plugins/copilot.lua @@ -0,0 +1,7 @@ +return { + 'zbirenbaum/copilot.lua', + opts = { + suggestion = { enabled = false }, + panel = { enabled = false }, + }, +} diff --git a/lua/custom/plugins/harpoon.lua b/lua/custom/plugins/harpoon.lua new file mode 100644 index 00000000..1fa20fde --- /dev/null +++ b/lua/custom/plugins/harpoon.lua @@ -0,0 +1,9 @@ +if true then + return {} +end +-- https://github.com/ThePrimeagen/harpoon/tree/harpoon2 - this branch, follow before removing trueflag above +return { + 'ThePrimeagen/harpoon', + branch = 'harpoon2', + dependencies = { { 'nvim-lua/plenary.nvim' } }, +} diff --git a/lua/custom/plugins/pkl-ls.lua b/lua/custom/plugins/pkl-ls.lua new file mode 100644 index 00000000..dac8b3e6 --- /dev/null +++ b/lua/custom/plugins/pkl-ls.lua @@ -0,0 +1,18 @@ +if true then + return {} +end +return { + 'jayadamsmorgan/PklLanguageServer', + build = 'mv Editors/Neovim/pklls-nvim/* .', + config = function() + local capabilities = require('cmp_nvim_lsp').default_capabilities() -- if you are using nvim_cmp for completion + require('pklls-nvim.init').setup { + capabilities = capabilities, -- change or remove this + -- on_attach = custom_on_attach -- change or remove this + -- cmd = custom_path_to_pkl_lsp_server + } + end, + dependencies = { + 'neovim/nvim-lspconfig', + }, +} diff --git a/lua/custom/plugins/pkl-neovim.lua b/lua/custom/plugins/pkl-neovim.lua new file mode 100644 index 00000000..a3b6cbfe --- /dev/null +++ b/lua/custom/plugins/pkl-neovim.lua @@ -0,0 +1,7 @@ +return { + "https://github.com/apple/pkl-neovim", + lazy = true, + event = "BufReadPre *.pkl", + dependencies = {"nvim-treesitter/nvim-treesitter"}, + build = function() vim.cmd("TSInstall! pkl") end, +} diff --git a/lua/custom/plugins/vim-be-good.lua b/lua/custom/plugins/vim-be-good.lua new file mode 100644 index 00000000..b1e2a543 --- /dev/null +++ b/lua/custom/plugins/vim-be-good.lua @@ -0,0 +1,3 @@ +return { + 'ThePrimeagen/vim-be-good', +} diff --git a/lua/custom/plugins/zellij-nav.lua b/lua/custom/plugins/zellij-nav.lua new file mode 100644 index 00000000..d1cd6fea --- /dev/null +++ b/lua/custom/plugins/zellij-nav.lua @@ -0,0 +1,22 @@ +return { + "https://git.sr.ht/~swaits/zellij-nav.nvim", + lazy = true, + event = "VeryLazy", + keys = { + { + "", "ZellijNavigateLeft", + {silent = true, desc = "navigate left"} + }, { + "", "ZellijNavigateDown", + {silent = true, desc = "navigate down"} + }, + { + "", "ZellijNavigateUp", + {silent = true, desc = "navigate up"} + }, { + "", "ZellijNavigateRight", + {silent = true, desc = "navigate right"} + } + }, + opts = {} +}