added some plugins. and deleted auto comments

This commit is contained in:
Jimmy Bates 2024-04-26 00:14:17 -07:00
parent a5968ab027
commit ea09729865
3 changed files with 34 additions and 0 deletions

View File

@ -154,6 +154,10 @@ vim.opt.inccommand = 'split'
-- Show which line your cursor is on -- Show which line your cursor is on
vim.opt.cursorline = true vim.opt.cursorline = true
-- EDIT: unsticky comments
vim.cmd 'autocmd BufEnter * set formatoptions-=cro'
vim.cmd 'autocmd BufEnter * setlocal formatoptions-=cro'
-- Minimal number of screen lines to keep above and below the cursor. -- Minimal number of screen lines to keep above and below the cursor.
vim.opt.scrolloff = 10 vim.opt.scrolloff = 10
@ -539,6 +543,8 @@ require('lazy').setup({
require 'custom.plugins.toggleterm', require 'custom.plugins.toggleterm',
require 'custom.plugins.refactoring', require 'custom.plugins.refactoring',
require 'custom.plugins.trouble', require 'custom.plugins.trouble',
require 'custom.plugins.persistence',
-- require 'custom.plugins.dial',
-- require 'custom.plugins.mason', -- require 'custom.plugins.mason',
-- --
-- ad hoc lsp line -- ad hoc lsp line

View File

@ -0,0 +1,4 @@
return {
'monaqa/dial.nvim',
-- Use http://www.lazyvim.org/extras/editor/dial as reference
}

View File

@ -0,0 +1,24 @@
return {
'folke/persistence.nvim',
event = 'BufReadPre', -- this will only start session saving when an actual file was opened
opts = {
-- add any custom options here
},
keys = {
{
'<leader>Qs',
'<Cmd>lua require("persistence").load()<CR>',
desc = '[L]oad session',
},
{
'<leader>Ql',
'<Cmd>lua require("persistence").load({ last = true })<CR>',
desc = '[L]oad last session',
},
{
'<leader>Qq',
'<Cmd>lua require("persistence").stop()<CR>',
desc = '[Q]uit session saving',
},
},
}