diff options
| author | Simen A. W. Olsen <hello@simenandre.no> | 2026-03-21 13:42:12 +0100 |
|---|---|---|
| committer | Simen A. W. Olsen <hello@simenandre.no> | 2026-03-21 13:42:12 +0100 |
| commit | dfb342da4ebee21f29fa0713be5e61123a0cf36f (patch) | |
| tree | 841e119a8335bb00bdf4b5a10c88ec352fcf8e30 /lua/simenandre/init.lua | |
| parent | 9ae165fa0d8cd1ecc433026642484c167c3e0b88 (diff) | |
| download | config.nvim-dfb342da4ebee21f29fa0713be5e61123a0cf36f.tar.gz config.nvim-dfb342da4ebee21f29fa0713be5e61123a0cf36f.zip | |
refactor: restructure LSP configuration and modernize plugins
- 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
Diffstat (limited to 'lua/simenandre/init.lua')
| -rw-r--r-- | lua/simenandre/init.lua | 8 |
1 files changed, 2 insertions, 6 deletions
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 |
