From 6f7b123c36e4360827898ba7a999596b29280082 Mon Sep 17 00:00:00 2001 From: Jorge Benavente Date: Thu, 2 May 2024 22:37:06 +0200 Subject: [PATCH] Enable csharp debugging --- init.lua | 14 ++++++++++---- lua/kickstart/plugins/debug.lua | 4 ++++ 2 files changed, 14 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index 496f45b8..aae45b3a 100644 --- a/init.lua +++ b/init.lua @@ -91,7 +91,7 @@ vim.g.mapleader = ' ' vim.g.maplocalleader = ' ' -- Set to true if you have a Nerd Font installed -vim.g.have_nerd_font = false +vim.g.have_nerd_font = true -- [[ Setting options ]] -- See `:help vim.opt` @@ -100,6 +100,7 @@ vim.g.have_nerd_font = false -- Make line numbers default vim.opt.number = true +vim.opt.relativenumber = true -- You can also add relative line numbers, to help with jumping. -- Experiment for yourself to see if you like it! -- vim.opt.relativenumber = true @@ -548,7 +549,10 @@ require('lazy').setup({ -- https://github.com/pmizio/typescript-tools.nvim -- -- But for many setups, the LSP (`tsserver`) will work just fine - -- tsserver = {}, + tsserver = { + 'prettierd', + 'eslint', + }, -- lua_ls = { @@ -580,6 +584,8 @@ require('lazy').setup({ local ensure_installed = vim.tbl_keys(servers or {}) vim.list_extend(ensure_installed, { 'stylua', -- Used to format Lua code + 'omnisharp', + 'netcoredbg', }) require('mason-tool-installer').setup { ensure_installed = ensure_installed } @@ -630,7 +636,7 @@ require('lazy').setup({ -- -- You can use a sub-list to tell conform to run *until* a formatter -- is found. - -- javascript = { { "prettierd", "prettier" } }, + javascript = { { 'prettierd', 'prettier' } }, }, }, }, @@ -838,7 +844,7 @@ require('lazy').setup({ -- Here are some example plugins that I've included in the Kickstart repository. -- Uncomment any of the lines below to enable them (you will need to restart nvim). -- - -- require 'kickstart.plugins.debug', + require 'kickstart.plugins.debug', -- require 'kickstart.plugins.indent_line', -- require 'kickstart.plugins.lint', diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index 7be4abdb..499e71e3 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -23,6 +23,7 @@ return { -- Add your own debuggers here 'leoluz/nvim-dap-go', + 'nicholasmata/nvim-dap-cs', }, config = function() local dap = require 'dap' @@ -32,6 +33,7 @@ return { -- Makes a best effort to setup the various debuggers with -- reasonable debug configurations automatic_setup = true, + automatic_installation = true, -- You can provide additional configuration to the handlers, -- see mason-nvim-dap README for more information @@ -42,6 +44,7 @@ return { ensure_installed = { -- Update this to ensure that you have the debuggers for the langs you want 'delve', + 'netcoredbg', }, } @@ -86,5 +89,6 @@ return { -- Install golang specific config require('dap-go').setup() + require('dap-cs').setup() end, }