From 2a3c867b1138cea538fba5a81ab9855ef910a451 Mon Sep 17 00:00:00 2001 From: Evie Litherland-Smith Date: Sat, 20 May 2023 10:16:24 +0100 Subject: [PATCH] Add Neorg, replace nvim_test with neotest --- lua/plugins/nvim_neorg.lua | 18 ++++++++++++++++++ lua/plugins/nvim_neotest.lua | 12 ++++++++++++ lua/plugins/nvim_test.lua | 28 ---------------------------- 3 files changed, 30 insertions(+), 28 deletions(-) create mode 100644 lua/plugins/nvim_neorg.lua create mode 100644 lua/plugins/nvim_neotest.lua delete mode 100644 lua/plugins/nvim_test.lua diff --git a/lua/plugins/nvim_neorg.lua b/lua/plugins/nvim_neorg.lua new file mode 100644 index 0000000..19d38ec --- /dev/null +++ b/lua/plugins/nvim_neorg.lua @@ -0,0 +1,18 @@ +return { + "nvim-neorg/neorg", + build = ":Neorg sync-parsers", + dependencies = { { "nvim-lua/plenary.nvim" } }, + opts = { + load = { + ["core.defaults"] = {}, -- Loads default behaviour + ["core.concealer"] = {}, -- Adds pretty icons to your documents + ["core.dirman"] = { -- Manages Neorg workspaces + config = { + workspaces = { + notes = "~/notes", + }, + }, + }, + }, + }, +} diff --git a/lua/plugins/nvim_neotest.lua b/lua/plugins/nvim_neotest.lua new file mode 100644 index 0000000..e0eb75e --- /dev/null +++ b/lua/plugins/nvim_neotest.lua @@ -0,0 +1,12 @@ +return { + "nvim-neotest/neotest", + lazy = true, + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-treesitter/nvim-treesitter", + -- "antoinemadec/FixCursorHold.nvim", + "nvim-neotest/neotest-python", + }, + config = true, + opts = function() return { adapters = { require "neotest-python" } } end, +} diff --git a/lua/plugins/nvim_test.lua b/lua/plugins/nvim_test.lua deleted file mode 100644 index c54b3ea..0000000 --- a/lua/plugins/nvim_test.lua +++ /dev/null @@ -1,28 +0,0 @@ -return { - "klen/nvim-test", - cmd = { - "TestFile", - "TestEdit", - "TestNearest", - "TestLast", - "TestVisit", - "TestInfo", - "TestSuite", - }, - init = function() - vim.keymap.set("n", "ts", "TestSuite") - vim.keymap.set("n", "tf", "TestFile") - vim.keymap.set("n", "te", "TestEdit") - vim.keymap.set("n", "tn", "TestNearest") - vim.keymap.set("n", "tl", "TestLast") - vim.keymap.set("n", "tv", "TestVisit") - vim.keymap.set("n", "ti", "TestInfo") - end, - config = true, - otps = { - termOpts = { - direction = "horizontal", - keep_one = true, - }, - }, -}