From dfb342da4ebee21f29fa0713be5e61123a0cf36f Mon Sep 17 00:00:00 2001 From: "Simen A. W. Olsen" Date: Sat, 21 Mar 2026 13:42:12 +0100 Subject: refactor: restructure LSP configuration and modernize plugins MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - Split LSP server configs into separate files in lsp/ directory - Replace deprecated vim.loop with vim.uv API - Update copilot plugin (copilot.vim → copilot.lua) - Add snacks.nvim plugin for utilities - Simplify LSP setup using new Neovim 0.11+ APIs - Remove hardcoded paths in favor of vim.fs.joinpath - Clean up configuration and remove duplicate keybindings - Remove comment.lua plugin --- lua/simenandre/init.lua | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'lua/simenandre/init.lua') diff --git a/lua/simenandre/init.lua b/lua/simenandre/init.lua index 65036d9..3d28d3b 100644 --- a/lua/simenandre/init.lua +++ b/lua/simenandre/init.lua @@ -13,13 +13,9 @@ vim.api.nvim_create_autocmd("TextYankPost", { }) function open_daily_note() - -- Get today's date in YYYY-mm-dd format local date = os.date("%Y-%m-%d") - - -- Construct the file path - local file_path = "/Users/cobraz/ghq/github.com/simenandre/notes/" .. date .. ".md" - - -- Open the file (it will be created if it doesn't exist) + local notes_dir = vim.fs.joinpath(vim.env.HOME, "ghq/github.com/simenandre/notes") + local file_path = vim.fs.joinpath(notes_dir, date .. ".md") vim.cmd("edit " .. file_path) end -- cgit v1.3.1