update
This commit is contained in:
parent
e0f933f46a
commit
950c95d644
1 changed files with 11 additions and 8 deletions
19
init.lua
19
init.lua
|
|
@ -97,6 +97,17 @@ end
|
|||
-- Plugins
|
||||
-------------------------------------------------------------------------------
|
||||
require("lazy").setup({
|
||||
{
|
||||
"folke/zen-mode.nvim",
|
||||
opts = {
|
||||
window = {
|
||||
options = {
|
||||
number = false
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
},
|
||||
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
||||
{
|
||||
"benlubas/molten-nvim",
|
||||
|
|
@ -648,14 +659,6 @@ vim.api.nvim_create_autocmd('BufEnter', {
|
|||
vim.opt_local.formatoptions:append("t")
|
||||
end,
|
||||
})
|
||||
vim.api.nvim_create_autocmd("BufWritePre", {
|
||||
pattern = { "*.md" },
|
||||
callback = function()
|
||||
local save_cursor = vim.api.nvim_win_get_cursor(0)
|
||||
vim.cmd("silent! normal! ggVGgq") -- format whole buffer
|
||||
vim.api.nvim_win_set_cursor(0, save_cursor)
|
||||
end,
|
||||
})
|
||||
|
||||
-------------------------------------------------------------------------------
|
||||
-- Comments
|
||||
|
|
|
|||
Loading…
Reference in a new issue