Add Neorg, replace nvim_test with neotest

This commit is contained in:
Evie Litherland-Smith 2023-05-20 10:16:24 +01:00
parent 6ac8053ecc
commit 2a3c867b11
3 changed files with 30 additions and 28 deletions

View file

@ -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",
},
},
},
},
},
}

View file

@ -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,
}

View file

@ -1,28 +0,0 @@
return {
"klen/nvim-test",
cmd = {
"TestFile",
"TestEdit",
"TestNearest",
"TestLast",
"TestVisit",
"TestInfo",
"TestSuite",
},
init = function()
vim.keymap.set("n", "<leader>ts", "<cmd>TestSuite<cr>")
vim.keymap.set("n", "<leader>tf", "<cmd>TestFile<cr>")
vim.keymap.set("n", "<leader>te", "<cmd>TestEdit<cr>")
vim.keymap.set("n", "<leader>tn", "<cmd>TestNearest<cr>")
vim.keymap.set("n", "<leader>tl", "<cmd>TestLast<cr>")
vim.keymap.set("n", "<leader>tv", "<cmd>TestVisit<cr>")
vim.keymap.set("n", "<leader>ti", "<cmd>TestInfo<cr>")
end,
config = true,
otps = {
termOpts = {
direction = "horizontal",
keep_one = true,
},
},
}