clone of my dotfiles.ssp.sh
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

turn off folds in DiffviewFilePanel

sspaeti b460f949 d781b94a

+17 -2
+16 -1
nvim/lua/sspaeti/lazy-plugs.lua
··· 139 139 { "tpope/vim-rhubarb", event = "VeryLazy" }, 140 140 141 141 { "kdheepak/lazygit.nvim", event = "VeryLazy" }, 142 - { "sindrets/diffview.nvim"}, --nvim gitdiff like vscode', 142 + { "sindrets/diffview.nvim", 143 + -- fix autofolding diffs, see https://github.com/sindrets/diffview.nvim/issues/132#issuecomment-1121020729 144 + config = function() 145 + require("diffview").setup({ 146 + hooks = { 147 + diff_buf_read = function(bufnr) 148 + vim.cmd("norm! gg]ckzt") -- Set cursor on the first hunk 149 + end, 150 + diff_buf_win_enter = function(bufnr) 151 + vim.opt_local.foldlevel = 99 152 + end, 153 + }, 154 + }) 155 + end, 156 + }, --nvim gitdiff like vscode', 143 157 { "mhinz/vim-signify", event = "VeryLazy" }, --highlighing changes not commited to last commmit 144 158 145 159 { "APZelos/blamer.nvim", event = "VeryLazy" }, --gitlens blame style', ··· 221 235 config = function() 222 236 require("chatgpt").setup({ 223 237 async_api_key_cmd = "echo 'OPENAI_API_KEY'", 238 + -- predefined_chat_gpt_prompts = "https://gist.githubusercontent.com/sspaeti/ede00414a3862bbd46d944106f83a1d9/raw/77fea556976ca1692d95c17ad0e425851303376c/prompt-roles-chatgpt.csv" 224 239 }) 225 240 end, 226 241 dependencies = {
+1 -1
nvim/lua/sspaeti/set.lua
··· 25 25 vim.opt.showcmd = true -- display incomplete commands 26 26 vim.opt.laststatus = 3 -- 3: Only show global status line in acitve window 2: Always display the status line 27 27 28 - --fold settings 28 + --foldlevel settings 29 29 vim.opt.foldmethod = "indent" 30 30 vim.opt.foldlevel = 5 31 31 vim.wo.foldmethod = "expr"