From e256d7404533410edf25fded689d75a6a7af3363 Mon Sep 17 00:00:00 2001 From: Max Richter Date: Wed, 3 May 2023 09:21:04 +0200 Subject: [PATCH] @ --- configs/nvim/lazy-lock.json | 13 +++++---- .../lua/max/plugins/autocomplete/snippets.lua | 2 +- configs/nvim/lua/max/plugins/hologram.lua | 8 ++++++ configs/nvim/lua/max/plugins/neoai.lua | 28 +++++++++++++++++++ 4 files changed, 45 insertions(+), 6 deletions(-) create mode 100644 configs/nvim/lua/max/plugins/hologram.lua create mode 100644 configs/nvim/lua/max/plugins/neoai.lua diff --git a/configs/nvim/lazy-lock.json b/configs/nvim/lazy-lock.json index 68f7ba0..0579987 100644 --- a/configs/nvim/lazy-lock.json +++ b/configs/nvim/lazy-lock.json @@ -5,6 +5,7 @@ "autolist.nvim": { "branch": "main", "commit": "0936e384b10315f65b8ef3bf1be938314d23a528" }, "barbar.nvim": { "branch": "master", "commit": "8edf23fe94a2486a8bc74cb64efb9211810f7e83" }, "boole.nvim": { "branch": "main", "commit": "f4f9996f91159e54b8f1893b20e2e599c91bc1bd" }, + "catppuccin": { "branch": "main", "commit": "939be5f7fcbc15abeaad9214bb253a4551f6f6e6" }, "cmp-buffer": { "branch": "main", "commit": "3022dbc9166796b644a841a02de8dd1cc1d311fa" }, "cmp-emoji": { "branch": "main", "commit": "19075c36d5820253d32e2478b6aaf3734aeaafa0" }, "cmp-nvim-lsp": { "branch": "main", "commit": "0e6b2ed705ddcff9738ec4ea838141654f12eeef" }, @@ -16,7 +17,8 @@ "flit.nvim": { "branch": "main", "commit": "f60e4b3d49bb5a5e97cfffe66f2e671eb422078e" }, "friendly-snippets": { "branch": "main", "commit": "b1b78a6433268fc172adb5a843e165035e83861e" }, "git-conflict.nvim": { "branch": "main", "commit": "f2ed4dc910a7dd23f1762fc57c1986cfd210283b" }, - "gitsigns.nvim": { "branch": "main", "commit": "372d5cb485f2062ac74abc5b33054abac21d8b58" }, + "gitsigns.nvim": { "branch": "main", "commit": "7d5a2132a54e1158990074b536de5c7d773126f5" }, + "hologram.nvim": { "branch": "main", "commit": "f5194f71ec1578d91b2e3119ff08e574e2eab542" }, "lazy.nvim": { "branch": "main", "commit": "5c89dc52f42e5058a46b0912d7d9042f564e44e0" }, "leap.nvim": { "branch": "main", "commit": "0eb3611593e135150e2f7880ec67568ccb51c17a" }, "lsp-format.nvim": { "branch": "master", "commit": "ca0df5c8544e51517209ea7b86ecc522c98d4f0a" }, @@ -26,8 +28,9 @@ "lualine.nvim": { "branch": "master", "commit": "84ffb80e452d95e2c46fa29a98ea11a240f7843e" }, "mason-lspconfig.nvim": { "branch": "main", "commit": "7034065099c1665143091c7282b3b1b8f0b23783" }, "mason.nvim": { "branch": "main", "commit": "4b357eded58ef0993fb49a591ed70306c6b44e08" }, - "mini.nvim": { "branch": "main", "commit": "672d6d1e7c117e393b269f5af30856e923271203" }, + "mini.nvim": { "branch": "main", "commit": "590ac69a6c249ee94c390ab4b46147480409b646" }, "neo-tree.nvim": { "branch": "v2.x", "commit": "7a6b0d43d70636edfec183fb49c02f725765da73" }, + "neoai.nvim": { "branch": "main", "commit": "b90180e30d143afb71490b92b08c1e9121d4416a" }, "neotest": { "branch": "master", "commit": "8d279ac31542553461f5377db1596ae52e042d00" }, "neotest-jest": { "branch": "main", "commit": "22b1050dda3ebd401780ec4b8e193cf52523a4da" }, "neotest-vitest": { "branch": "main", "commit": "d6577b191e16c174bffbec1eadfcd65c22fdcc0d" }, @@ -44,12 +47,12 @@ "nvim-recorder": { "branch": "main", "commit": "0f6dec901a530c41095cff8def0c723877374cb4" }, "nvim-scrollbar": { "branch": "main", "commit": "f85b29805cf917f9b1d5ff0c9a52c5b1bdca5943" }, "nvim-toggleterm.lua": { "branch": "main", "commit": "1c5996ee3c30b54751093fe68d40676859e7778f" }, - "nvim-treesitter": { "branch": "master", "commit": "b0338a056525e83d88aaa76e8cf396af07410bed" }, + "nvim-treesitter": { "branch": "master", "commit": "654216eb04f3fdf0f847ff2d410319fba6cee847" }, "nvim-treesitter-textobjects": { "branch": "master", "commit": "8673926519ea61069f9c1366d1ad1949316d250e" }, - "nvim-ts-autotag": { "branch": "main", "commit": "cac97f3b47bcb927db6d1d784c0c323056506ef3" }, + "nvim-ts-autotag": { "branch": "main", "commit": "26761ba6848d814605a629bc8d2694eeb1e48007" }, "nvim-ts-context-commentstring": { "branch": "main", "commit": "0bf8fbc2ca8f8cdb6efbd0a9e32740d7a991e4c3" }, "nvim-web-devicons": { "branch": "master", "commit": "4ec26d67d419c12a4abaea02f1b6c57b40c08d7e" }, - "oil.nvim": { "branch": "master", "commit": "fb8b101d7cb4727d8719ab6ed141330eca997d3f" }, + "oil.nvim": { "branch": "master", "commit": "3ac035e5ac448ce898c9aad7158a47378be4e85a" }, "persisted.nvim": { "branch": "main", "commit": "dbdd6af1847105f5cc7f7c51a648b32a78598eec" }, "plenary.nvim": { "branch": "master", "commit": "9ac3e9541bbabd9d73663d757e4fe48a675bb054" }, "popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" }, diff --git a/configs/nvim/lua/max/plugins/autocomplete/snippets.lua b/configs/nvim/lua/max/plugins/autocomplete/snippets.lua index fc62c31..264e4fe 100644 --- a/configs/nvim/lua/max/plugins/autocomplete/snippets.lua +++ b/configs/nvim/lua/max/plugins/autocomplete/snippets.lua @@ -6,8 +6,8 @@ local sn = ls.snippet_node local t = ls.text_node local i = ls.insert_node local f = ls.function_node -local c = ls.choice_node local d = ls.dynamic_node +local fmt = require("luasnip.extras.fmt").fmt local types = require("luasnip.util.types") diff --git a/configs/nvim/lua/max/plugins/hologram.lua b/configs/nvim/lua/max/plugins/hologram.lua new file mode 100644 index 0000000..79f2ad4 --- /dev/null +++ b/configs/nvim/lua/max/plugins/hologram.lua @@ -0,0 +1,8 @@ +return { + "edluffy/hologram.nvim", + ft = "markdown", + lazy = false, + opts = { + auto_display = true, + } +} diff --git a/configs/nvim/lua/max/plugins/neoai.lua b/configs/nvim/lua/max/plugins/neoai.lua new file mode 100644 index 0000000..7bfd3f4 --- /dev/null +++ b/configs/nvim/lua/max/plugins/neoai.lua @@ -0,0 +1,28 @@ +return { + "Bryley/neoai.nvim", + dependencies = { + "MunifTanjim/nui.nvim", + }, + cmd = { + "NeoAI", + "NeoAIOpen", + "NeoAIClose", + "NeoAIToggle", + "NeoAIContext", + "NeoAIContextOpen", + "NeoAIContextClose", + "NeoAIInject", + "NeoAIInjectCode", + "NeoAIInjectContext", + "NeoAIInjectContextCode", + }, + keys = { + { "as", desc = "summarize text" }, + { "ag", desc = "generate git message" }, + }, + config = function() + require("neoai").setup({ + -- Options go here + }) + end, +}