From f4b9fef63cd77519e662d99af2c5d3601605fb33 Mon Sep 17 00:00:00 2001 From: Peter Stuifzand Date: Thu, 22 Feb 2024 21:02:36 +0100 Subject: [PATCH] My custom plugins --- lua/custom/plugins.lua | 15 +++++++++++++++ lua/custom/plugins/aw-watcher.lua | 3 +++ lua/custom/plugins/copilot.lua | 6 ++++++ lua/custom/plugins/null-ls.lua | 20 ++++++++++++++++++++ lua/custom/plugins/oil.lua | 25 +++++++++++++++++++++++++ lua/custom/plugins/op.lua | 9 +++++++++ lua/custom/plugins/trouble.lua | 6 ++++++ 7 files changed, 84 insertions(+) create mode 100644 lua/custom/plugins.lua create mode 100644 lua/custom/plugins/aw-watcher.lua create mode 100644 lua/custom/plugins/copilot.lua create mode 100644 lua/custom/plugins/null-ls.lua create mode 100644 lua/custom/plugins/oil.lua create mode 100644 lua/custom/plugins/op.lua create mode 100644 lua/custom/plugins/trouble.lua diff --git a/lua/custom/plugins.lua b/lua/custom/plugins.lua new file mode 100644 index 00000000..9cb63efc --- /dev/null +++ b/lua/custom/plugins.lua @@ -0,0 +1,15 @@ +return { + 'tpope/vim-unimpaired', + 'tpope/vim-eunuch', + -- { 'rafamadriz/friendly-snippets', + -- init = function () + -- require("luasnip.loaders.from_vscode").lazy_load() + -- end + -- }, + 'fatih/vim-go', + { 'mickael-menu/zk-nvim', + init = function () + require("zk").setup() + end + } +} diff --git a/lua/custom/plugins/aw-watcher.lua b/lua/custom/plugins/aw-watcher.lua new file mode 100644 index 00000000..cfdab3d0 --- /dev/null +++ b/lua/custom/plugins/aw-watcher.lua @@ -0,0 +1,3 @@ +return { + 'ActivityWatch/aw-watcher-vim', +} diff --git a/lua/custom/plugins/copilot.lua b/lua/custom/plugins/copilot.lua new file mode 100644 index 00000000..2ef4de65 --- /dev/null +++ b/lua/custom/plugins/copilot.lua @@ -0,0 +1,6 @@ +return { + 'github/copilot.vim', + config = function () + vim.g.copilot_assume_mapped = true + end +} diff --git a/lua/custom/plugins/null-ls.lua b/lua/custom/plugins/null-ls.lua new file mode 100644 index 00000000..9d040087 --- /dev/null +++ b/lua/custom/plugins/null-ls.lua @@ -0,0 +1,20 @@ +return { + "jay-babu/mason-null-ls.nvim", + event = { "BufReadPre", "BufNewFile" }, + dependencies = { + "williamboman/mason.nvim", + "jose-elias-alvarez/null-ls.nvim", + }, + config = function() + local null_ls = require("null-ls") + local opts = { + automatic_installation = true, + automatic_setup = true, + sources = { + null_ls.builtins.formatting.prettierd, + null_ls.builtins.diagnostics.hadolint, + } + } + null_ls.setup(opts) + end, +} diff --git a/lua/custom/plugins/oil.lua b/lua/custom/plugins/oil.lua new file mode 100644 index 00000000..3a6b5c99 --- /dev/null +++ b/lua/custom/plugins/oil.lua @@ -0,0 +1,25 @@ +return { + "stevearc/oil.nvim", + keys = { + { "-", "Oil", desc = "Open Oil" }, + }, + config = function() + require("oil").setup({ + keymaps = { + ["g?"] = "actions.show_help", + [""] = "actions.select", + [""] = "actions.select_vsplit", + [""] = "actions.select_split", + [""] = "actions.select_tab", + [""] = "actions.preview", + [""] = "actions.close", + [""] = "actions.refresh", + ["-"] = "actions.parent", + ["_"] = "actions.open_cwd", + ["`"] = "actions.cd", + ["~"] = "actions.tcd", + ["g."] = "actions.toggle_hidden", + }, + }) + end, +} diff --git a/lua/custom/plugins/op.lua b/lua/custom/plugins/op.lua new file mode 100644 index 00000000..c7753e60 --- /dev/null +++ b/lua/custom/plugins/op.lua @@ -0,0 +1,9 @@ +return { + 'pstuifzand/op.nvim', + build = 'make install', + config = function() + require('op').setup({ + op_cli_path = '/usr/bin/op', + }) + end +} diff --git a/lua/custom/plugins/trouble.lua b/lua/custom/plugins/trouble.lua new file mode 100644 index 00000000..d573a934 --- /dev/null +++ b/lua/custom/plugins/trouble.lua @@ -0,0 +1,6 @@ +return { + "folke/trouble.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + opts = { + } +}