From 7afef542c2d465e49079b189a95b0bb5336fd0d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sofus=20Albert=20H=C3=B8gsbro=20Rose?= Date: Wed, 19 Feb 2025 11:59:22 +0100 Subject: [PATCH] fix: fixes projections improperly saving window size Also removed fzf-lua-projections. --- lazy-lock.json | 5 ----- lua/guis/neovide.lua | 14 ++++++++++---- lua/plugins/workflow/projections.lua | 11 ++--------- 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index 3f807e7..e9ad172 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -5,16 +5,11 @@ "conform.nvim": { "branch": "master", "commit": "363243c03102a531a8203311d4f2ae704c620d9b" }, "flatten.nvim": { "branch": "main", "commit": "b17a3e65c2e4e2ecd1345a2d08435e80f982c4a6" }, "friendly-snippets": { "branch": "main", "commit": "efff286dd74c22f731cdec26a70b46e5b203c619" }, - "fzf-lua": { "branch": "main", "commit": "e3fefd97875827e47dc4bbf1074ee464b2d8e6a8" }, - "fzf-lua-projections.nvim": { "branch": "main", "commit": "411672ab6f7c38d3a4a51916fda1a01c1618ae04" }, "gitsigns.nvim": { "branch": "main", "commit": "9b36d497495436c135659902054ee637e0ba6021" }, - "hererocks": { "branch": "master", "commit": "c9c5444dea1e07e005484014a8231aa667be30b6" }, - "image.nvim": { "branch": "master", "commit": "7704e1d03d952393774dc7d00a98d8e127086ba4" }, "img-clip.nvim": { "branch": "main", "commit": "5ded6f468d633ccfb315905fe8901d6c95ae8f29" }, "lazy.nvim": { "branch": "main", "commit": "f15a93907ddad3d9139aea465ae18336d87f5ce6" }, "lsp_lines.nvim": { "branch": "main", "commit": "a92c755f182b89ea91bd8a6a2227208026f27b4d" }, "mdmath.nvim": { "branch": "main", "commit": "699acb27fd34bfdf92a43ce0abdd17f0c7a948fe" }, - "mini.files": { "branch": "main", "commit": "0db8f49088bcefff23c5cb8498a6c94e46a45a8e" }, "molten-nvim": { "branch": "main", "commit": "a286aa914d9a154bc359131aab788b5a077a5a99" }, "nabla.nvim": { "branch": "master", "commit": "27a6ea9ed7452bb9e0b19eb0942b5bcf7d051b2f" }, "neotest": { "branch": "master", "commit": "d66cf4e05a116957f0d3a7755a24291c7d1e1f72" }, diff --git a/lua/guis/neovide.lua b/lua/guis/neovide.lua index 7978d84..0b1fd2c 100644 --- a/lua/guis/neovide.lua +++ b/lua/guis/neovide.lua @@ -1,15 +1,21 @@ -- See https://neovide.dev/configuration.html -vim.o.guifont = 'Hack Nerd Font Mono FC Ligatured:h14' +vim.o.guifont = 'Hack Nerd Font Mono:h14' vim.g.neovide_theme = 'auto' -vim.g.neovide_transparency = 0.93 +vim.g.neovide_transparency = 0.94 vim.g.neovide_scroll_animation_length = 0.1 vim.g.neovide_scroll_animation_far_lines = 1 vim.g.neovide_hide_mouse_when_typing = true -vim.g.neovide_cursor_animation_length = 0.08 +vim.g.neovide_cursor_animation_length = 0.06 vim.g.neovide_cursor_vfx_mode = 'wireframe' -vim.g.neovide_cursor_trail_size = 0.15 +vim.g.neovide_cursor_trail_size = 0.1 + +vim.g.neovide_scale_factor = 0.8 --vim.g.neovide_unlink_border_highlights = true --vim.g.neovide_refresh_rate = 40 --vim.g.neovide_refresh_rate_idle = 5 --Doesn't seem to have wayland support + +vim.keymap.set({'i', 'c'}, '', '+') + +vim.g.neovide_remember_window_size = true diff --git a/lua/plugins/workflow/projections.lua b/lua/plugins/workflow/projections.lua index cbb7f9d..39eed1b 100644 --- a/lua/plugins/workflow/projections.lua +++ b/lua/plugins/workflow/projections.lua @@ -35,13 +35,6 @@ return { commit = '889914169fa1f5c00fb8659653b5a8330fb223e6', lazy = true, - --dependencies = { - -- { - -- 'nyngwang/fzf-lua-projections.nvim', - -- commit = '411672ab6f7c38d3a4a51916fda1a01c1618ae04', - -- }, - --}, - keys = { { 'sp', @@ -72,7 +65,7 @@ return { }, init = function() - vim.opt.sessionoptions = 'blank,buffers,folds,globals,help,localoptions,resize,tabpages,terminal' + vim.opt.sessionoptions = 'blank,buffers,folds,globals,help,localoptions,tabpages,terminal' --#################### --# - Store Session on Close Vim @@ -82,7 +75,7 @@ return { }) --#################### - --# - Store Session on Timer + --# - Store Session when Saving Any Buffer --#################### vim.api.nvim_create_autocmd({ 'BufWritePre' }, { callback = store_session,