From b18dfa2746ad5d40e628823f760df563c857599c Mon Sep 17 00:00:00 2001 From: Nick Burt Date: Tue, 10 Feb 2026 21:03:11 -0600 Subject: [PATCH 1/6] run a godot server when in a godot project --- init.lua | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/init.lua b/init.lua index 8185fdae..ab84097b 100644 --- a/init.lua +++ b/init.lua @@ -878,5 +878,15 @@ require('lazy').setup({ }, }) +-- FIX: godot-server: this is preventing multiple nvim sessions from running at the same time +-- FIX: godot-server: might be launching the server despite not being in a godot directory? +-- FIX: godot-server: Also, it really should check if the server is already running first... +local gdprojectfile = vim.fn.getcwd() == '/project.godot' +if gdprojectfile then vim.fn.serverstart '127.0.0.1:55432' end + +--TODO: godot-server: delete logging logic +print(gdprojectfile) +if gdprojectfile then print 'running in gd project file' end + -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et From 84096697723a10d42bb5f44c9f97e8f86beeb773 Mon Sep 17 00:00:00 2001 From: Nick Burt Date: Tue, 10 Feb 2026 21:11:59 -0600 Subject: [PATCH 2/6] fix accurate check if in godot directory --- init.lua | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/init.lua b/init.lua index ab84097b..644410f0 100644 --- a/init.lua +++ b/init.lua @@ -881,12 +881,14 @@ require('lazy').setup({ -- FIX: godot-server: this is preventing multiple nvim sessions from running at the same time -- FIX: godot-server: might be launching the server despite not being in a godot directory? -- FIX: godot-server: Also, it really should check if the server is already running first... -local gdprojectfile = vim.fn.getcwd() == '/project.godot' -if gdprojectfile then vim.fn.serverstart '127.0.0.1:55432' end +local gdprojectfilepath = vim.fn.getcwd() .. '/project.godot' +local isInGdDirectory = vim.fn.filereadable(gdprojectfilepath) == 1 + +if isInGdDirectory then vim.fn.serverstart '127.0.0.1:55432' end --TODO: godot-server: delete logging logic -print(gdprojectfile) -if gdprojectfile then print 'running in gd project file' end +if isInGdDirectory then print 'running in gd project file' end +print(vim.fn.filereadable(gdprojectfilepath)) -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et From 0800f2d9948a93ed2bd6fe58a7b078c3ab439a02 Mon Sep 17 00:00:00 2001 From: Nick Burt Date: Tue, 10 Feb 2026 21:13:28 -0600 Subject: [PATCH 3/6] remove logging logic --- init.lua | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/init.lua b/init.lua index 644410f0..f80af8c1 100644 --- a/init.lua +++ b/init.lua @@ -878,17 +878,11 @@ require('lazy').setup({ }, }) --- FIX: godot-server: this is preventing multiple nvim sessions from running at the same time --- FIX: godot-server: might be launching the server despite not being in a godot directory? --- FIX: godot-server: Also, it really should check if the server is already running first... +-- FIX: godot-server: should check if the server is already running first... local gdprojectfilepath = vim.fn.getcwd() .. '/project.godot' local isInGdDirectory = vim.fn.filereadable(gdprojectfilepath) == 1 if isInGdDirectory then vim.fn.serverstart '127.0.0.1:55432' end ---TODO: godot-server: delete logging logic -if isInGdDirectory then print 'running in gd project file' end -print(vim.fn.filereadable(gdprojectfilepath)) - -- The line beneath this is called `modeline`. See `:help modeline` -- vim: ts=2 sts=2 sw=2 et From d5d84ef6a6bec2f8aa1708ebf423d367d350f5ef Mon Sep 17 00:00:00 2001 From: Nick Burt Date: Tue, 10 Feb 2026 21:28:05 -0600 Subject: [PATCH 4/6] install the marks plugin --- init.lua | 1 - lua/custom/plugins/marks.lua | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 lua/custom/plugins/marks.lua diff --git a/init.lua b/init.lua index f80af8c1..eaf4cceb 100644 --- a/init.lua +++ b/init.lua @@ -881,7 +881,6 @@ require('lazy').setup({ -- FIX: godot-server: should check if the server is already running first... local gdprojectfilepath = vim.fn.getcwd() .. '/project.godot' local isInGdDirectory = vim.fn.filereadable(gdprojectfilepath) == 1 - if isInGdDirectory then vim.fn.serverstart '127.0.0.1:55432' end -- The line beneath this is called `modeline`. See `:help modeline` diff --git a/lua/custom/plugins/marks.lua b/lua/custom/plugins/marks.lua new file mode 100644 index 00000000..2c63d712 --- /dev/null +++ b/lua/custom/plugins/marks.lua @@ -0,0 +1,5 @@ +return { + 'chentoast/marks.nvim', + event = 'VeryLazy', + opts = {}, +} From be56786798e41dc3179d6561e34bfb1febdb4727 Mon Sep 17 00:00:00 2001 From: Nick Burt Date: Sun, 15 Mar 2026 01:42:52 -0500 Subject: [PATCH 5/6] replace marks plugin with guttermarks --- lua/custom/plugins/guttermarks.lua | 4 ++++ lua/custom/plugins/marks.lua | 5 ----- 2 files changed, 4 insertions(+), 5 deletions(-) create mode 100644 lua/custom/plugins/guttermarks.lua delete mode 100644 lua/custom/plugins/marks.lua diff --git a/lua/custom/plugins/guttermarks.lua b/lua/custom/plugins/guttermarks.lua new file mode 100644 index 00000000..fbc79a63 --- /dev/null +++ b/lua/custom/plugins/guttermarks.lua @@ -0,0 +1,4 @@ +return { + 'dimtion/guttermarks.nvim', + event = { 'BufReadPost', 'BufNewFile', 'BufWritePre', 'FileType' }, +} diff --git a/lua/custom/plugins/marks.lua b/lua/custom/plugins/marks.lua deleted file mode 100644 index 2c63d712..00000000 --- a/lua/custom/plugins/marks.lua +++ /dev/null @@ -1,5 +0,0 @@ -return { - 'chentoast/marks.nvim', - event = 'VeryLazy', - opts = {}, -} From fe72847a40423d754a4f209adc1716bb9d5a21d1 Mon Sep 17 00:00:00 2001 From: Nick Burt Date: Tue, 28 Apr 2026 21:48:04 -0500 Subject: [PATCH 6/6] revert change to godot server section --- init.lua | 1 + 1 file changed, 1 insertion(+) diff --git a/init.lua b/init.lua index fd577378..124f0b5b 100644 --- a/init.lua +++ b/init.lua @@ -963,6 +963,7 @@ require('lazy').setup({ -- FIX: godot-server: should check if the server is already running first... local gdprojectfilepath = vim.fn.getcwd() .. '/project.godot' local isInGdDirectory = vim.fn.filereadable(gdprojectfilepath) == 1 + if isInGdDirectory then vim.fn.serverstart '127.0.0.1:55432' end -- The line beneath this is called `modeline`. See `:help modeline`