added some plugins. and deleted auto comments
This commit is contained in:
parent
a5968ab027
commit
ea09729865
6
init.lua
6
init.lua
|
@ -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
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
return {
|
||||||
|
'monaqa/dial.nvim',
|
||||||
|
-- Use http://www.lazyvim.org/extras/editor/dial as reference
|
||||||
|
}
|
|
@ -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',
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Reference in New Issue