diff --git a/dot_config/nvim/benq/init.lua b/dot_config/nvim/benq/init.lua index 700f87b..902b3f4 100644 --- a/dot_config/nvim/benq/init.lua +++ b/dot_config/nvim/benq/init.lua @@ -10,7 +10,6 @@ vim.lsp.enable({ "html", "lua_ls", "nil_ls", - "roslyn_ls", }) require("config.diagnostics") diff --git a/dot_config/nvim/benq/lazy-lock.json b/dot_config/nvim/benq/lazy-lock.json index 4df1ea5..a24a9b6 100644 --- a/dot_config/nvim/benq/lazy-lock.json +++ b/dot_config/nvim/benq/lazy-lock.json @@ -4,7 +4,7 @@ "bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" }, "conform.nvim": { "branch": "master", "commit": "619363c30309d29ffa631e67c8183f2a72caa373" }, "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" }, - "easy-dotnet.nvim": { "branch": "main", "commit": "9a761b062e911dd709c6b31e857038e6c4981654" }, + "easy-dotnet.nvim": { "branch": "main", "commit": "e698b942a0a91cd5b457b828d16a66b7cb94d732" }, "flash.nvim": { "branch": "main", "commit": "b6346946d10d07998efee029fb0f7a593806d0cd" }, "fzf-lua": { "branch": "main", "commit": "532d463f5c83595192fe740572d8fd6902b2217a" }, "gitsigns.nvim": { "branch": "main", "commit": "eb60cc7b94c46005237fd34170d76f3a089a90aa" }, diff --git a/dot_config/nvim/benq/lua/plugins/features/neo-tree.lua b/dot_config/nvim/benq/lua/plugins/features/neo-tree.lua index bc465a7..839238f 100644 --- a/dot_config/nvim/benq/lua/plugins/features/neo-tree.lua +++ b/dot_config/nvim/benq/lua/plugins/features/neo-tree.lua @@ -1,27 +1,41 @@ return { - "nvim-neo-tree/neo-tree.nvim", - branch = "v3.x", - lazy = false, - dependencies = { - "nvim-lua/plenary.nvim", - "MunifTanjim/nui.nvim", - "nvim-tree/nvim-web-devicons", - }, - opts = { - filesystem = { - hijack_netrw_behavior = "disabled", + "nvim-neo-tree/neo-tree.nvim", + branch = "v3.x", + lazy = false, + dependencies = { + "nvim-lua/plenary.nvim", + "MunifTanjim/nui.nvim", + "nvim-tree/nvim-web-devicons", + }, + opts = { + filesystem = { + hijack_netrw_behavior = "disabled", follow_current_file = { enabled = true, }, + window = { + mappings = { + ["R"] = "easy", + }, + }, + commands = { + ["easy"] = function(state) + local node = state.tree:get_node() + local path = node.type == "directory" and node.path or vim.fs.dirname(node.path) + require("easy-dotnet").create_new_item(path, function() + require("neo-tree.sources.manager").refresh(state.name) + end) + end + } }, - }, - keys = { - { - "e", - function () - require("neo-tree.command").execute({ toggle = true }) - end, - desc = "Open neo-tree" - }, - } + }, + keys = { + { + "e", + function() + require("neo-tree.command").execute({ toggle = true }) + end, + desc = "Open neo-tree" + }, + } } diff --git a/dot_config/nvim/benq/lua/plugins/features/testing.lua b/dot_config/nvim/benq/lua/plugins/features/testing.lua index 5059235..91c050f 100644 --- a/dot_config/nvim/benq/lua/plugins/features/testing.lua +++ b/dot_config/nvim/benq/lua/plugins/features/testing.lua @@ -1,24 +1,24 @@ return { - { - "nvim-neotest/neotest", - dependencies = { - "nvim-treesitter/nvim-treesitter", - "nvim-neotest/nvim-nio", - "nvim-lua/plenary.nvim", - "antoinemadec/FixCursorHold.nvim", - }, - config = function() - require("neotest").setup({ - adapters = { - require("neotest-vstest") - } - }) - end, - keys = { - { "trn", function() require("neotest").run.run() end, desc = "Run nearest test" }, - { "tra", function() require("neotest").run.run({ suite = true }) end, desc = "Run all tests" }, - { "td", function() require("neotest").run.run({ strategy = "dap" }) end, desc = "Run nearest test with debugger" }, - { "ts", function() require("neotest").summary.toggle() end, desc = "Toggle test summary" }, - } - } + { + "nvim-neotest/neotest", + dependencies = { + "nvim-treesitter/nvim-treesitter", + "nvim-neotest/nvim-nio", + "nvim-lua/plenary.nvim", + "antoinemadec/FixCursorHold.nvim", + }, + config = function() + require("neotest").setup({ + adapters = { + require("easy-dotnet.neotest") + } + }) + end, + keys = { + { "trn", function() require("neotest").run.run() end, desc = "Run nearest test" }, + { "tra", function() require("neotest").run.run({ suite = true }) end, desc = "Run all tests" }, + { "td", function() require("neotest").run.run({ strategy = "dap" }) end, desc = "Run nearest test with debugger" }, + { "ts", function() require("neotest").summary.toggle() end, desc = "Toggle test summary" }, + } + } } diff --git a/dot_config/nvim/benq/lua/plugins/language-specific/dotnet/tools.lua b/dot_config/nvim/benq/lua/plugins/language-specific/dotnet/tools.lua index ecc2e7c..1a8a001 100644 --- a/dot_config/nvim/benq/lua/plugins/language-specific/dotnet/tools.lua +++ b/dot_config/nvim/benq/lua/plugins/language-specific/dotnet/tools.lua @@ -1,18 +1,14 @@ return { - { - "GustavEikaas/easy-dotnet.nvim", - enabled = false, - dependencies = { "nvim-lua/plenary.nvim", "mfussenegger/nvim-dap", "ibhagwan/fzf-lua", }, - opts = {}, - }, - { - "MonsieurTib/neonuget", - dependencies = { - "nvim-lua/plenary.nvim", - }, - opts = {}, - keys = { - { "nn", "NuGet", desc = "Open NuGet" } - } - } + "GustavEikaas/easy-dotnet.nvim", + enabled = true, + lazy = false, + dependencies = { "nvim-lua/plenary.nvim", "mfussenegger/nvim-dap", "ibhagwan/fzf-lua", }, + opts = { + test_runner = { + neotest_integration = true, + }, + }, + keys = { + { "dn", "Dotnet", desc = "Open easy-dotnet" }, + } }