From 3c78320142bbf31991c7ac2194288ab13b8f86c2 Mon Sep 17 00:00:00 2001 From: Eric Olerud Date: Thu, 18 Apr 2024 22:03:56 -0400 Subject: [PATCH] add tabset, remove tabchar from listchars, start building DAP for Godot --- init.lua | 25 ++++++++++++++++++++++++- lua/custom/plugins/tabset.lua | 10 ++++++++++ 2 files changed, 34 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/tabset.lua diff --git a/init.lua b/init.lua index a9b85b65..2e3bb941 100644 --- a/init.lua +++ b/init.lua @@ -57,7 +57,7 @@ vim.opt.splitbelow = true -- See `:help 'list'` -- and `:help 'listchars'` vim.opt.list = true --- vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '␣' } +vim.opt.listchars = { tab = ' ', trail = '·', nbsp = '␣' } -- Preview substitutions live, as you type! vim.opt.inccommand = 'split' @@ -518,6 +518,29 @@ require('lazy').setup({ end, }, + { -- DAP for Godot - https://docs.godotengine.org/en/stable/tutorials/editor/external_editor.html#lsp-dap-support + 'mfussenegger/nvim-dap', + config = function() + local dap = require 'dap' + dap.adapters.godot = { + type = 'server', + host = '127.0.0.1', + port = 6006, + } + + dap.configurations.gdscript = { + { + launch_game_instance = false, + launch_scene = false, + name = 'Launch scene', + project = '${workspaceFolder}', + request = 'launch', + type = 'godot', + }, + } + end, + }, + { -- Autoformat 'stevearc/conform.nvim', lazy = false, diff --git a/lua/custom/plugins/tabset.lua b/lua/custom/plugins/tabset.lua new file mode 100644 index 00000000..694b2c07 --- /dev/null +++ b/lua/custom/plugins/tabset.lua @@ -0,0 +1,10 @@ +return { + 'FotiadisM/tabset.nvim', + config = function() + require('tabset').setup { + defaults = { + tabwidth = 4, + }, + } + end, +}