From e6be670294dd8f38dec6983f8836248514868d50 Mon Sep 17 00:00:00 2001 From: "Paul B. Kim" Date: Fri, 6 Mar 2026 11:15:08 +0900 Subject: [PATCH] fix(startup): fix multi-splash, remove stale session manager --- .nvimlog | 12 ------------ init.lua | 8 ++++---- lua/custom/plugins/markdown.lua | 1 + lua/custom/plugins/persistence.lua | 18 ------------------ 4 files changed, 5 insertions(+), 34 deletions(-) delete mode 100644 .nvimlog diff --git a/.nvimlog b/.nvimlog deleted file mode 100644 index 167af117..00000000 --- a/.nvimlog +++ /dev/null @@ -1,12 +0,0 @@ -WRN 2026-02-08T10:26:22.500 ?.251198 server_start:199: Failed to start server: operation not permitted: /run/user/1000/nvim.251198.0 -WRN 2026-02-08T10:27:17.510 ?.252159 server_start:199: Failed to start server: operation not permitted: /run/user/1000/nvim.252159.0 -WRN 2026-02-08T10:27:27.437 ?.252367 server_start:199: Failed to start server: operation not permitted: /run/user/1000/nvim.252367.0 -WRN 2026-02-08T12:08:26.579 ?.359867 server_start:199: Failed to start server: operation not permitted: /run/user/1000/nvim.359867.0 -WRN 2026-02-08T12:10:44.180 ?.364737 server_start:199: Failed to start server: operation not permitted: /run/user/1000/nvim.364737.0 -ERR 2026-02-08T12:10:44.218 ?.364737 pty_proc_spawn:186: forkpty failed: Permission denied -WRN 2026-02-08T12:18:41.628 ?.381522 server_start:199: Failed to start server: operation not permitted: /run/user/1000/nvim.381522.0 -WRN 2026-02-08T16:12:49.348 ?.515879 server_start:199: Failed to start server: operation not permitted: /run/user/1000/nvim.515879.0 -WRN 2026-02-08T16:33:59.951 ?.543624 server_start:199: Failed to start server: operation not permitted: /run/user/1000/nvim.543624.0 -WRN 2026-02-08T16:57:38.954 ?.571806 server_start:199: Failed to start server: operation not permitted: /run/user/1000/nvim.571806.0 -WRN 2026-02-08T19:51:48.962 ?.702813 server_start:199: Failed to start server: operation not permitted: /run/user/1000/nvim.702813.0 -WRN 2026-02-08T19:51:48.968 ?.702844 server_start:199: Failed to start server: operation not permitted: /run/user/1000/nvim.702844.0 diff --git a/init.lua b/init.lua index 71c0867e..f99a9895 100644 --- a/init.lua +++ b/init.lua @@ -117,10 +117,10 @@ vim.schedule(function() vim.o.clipboard = 'unnamedplus' end) --- Default to 4-space indentation unless overridden by filetype/plugins -vim.o.tabstop = 4 -vim.o.shiftwidth = 4 -vim.o.softtabstop = 4 +-- Default to 2-space indentation unless overridden by filetype/plugins +vim.o.tabstop = 2 +vim.o.shiftwidth = 2 +vim.o.softtabstop = 2 vim.o.expandtab = true -- Save undo history diff --git a/lua/custom/plugins/markdown.lua b/lua/custom/plugins/markdown.lua index 647ab76a..26cc9929 100644 --- a/lua/custom/plugins/markdown.lua +++ b/lua/custom/plugins/markdown.lua @@ -18,6 +18,7 @@ return { vim.g.mkdp_auto_start = 0 vim.g.mkdp_auto_close = 1 vim.g.mkdp_refresh_slow = 0 + vim.g.mkdp_browser = 'google-chrome-stable' vim.g.mkdp_filetypes = { 'markdown' } end, keys = { diff --git a/lua/custom/plugins/persistence.lua b/lua/custom/plugins/persistence.lua index 83fa606a..5c0763d3 100644 --- a/lua/custom/plugins/persistence.lua +++ b/lua/custom/plugins/persistence.lua @@ -27,22 +27,4 @@ return { desc = '[W]orkspace [D]isable session save', }, }, - init = function() - vim.api.nvim_create_autocmd('VimEnter', { - group = vim.api.nvim_create_augroup('persistence-auto-restore', { clear = true }), - callback = function() - if vim.fn.argc(-1) > 0 then - return - end - - local ignored = { gitcommit = true, gitrebase = true } - if ignored[vim.bo.filetype] then - return - end - - require('persistence').load() - end, - nested = true, - }) - end, }