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
|
-- Plugins
|
||||||
-------------------------------------------------------------------------------
|
-------------------------------------------------------------------------------
|
||||||
require("lazy").setup({
|
require("lazy").setup({
|
||||||
|
{
|
||||||
|
"folke/zen-mode.nvim",
|
||||||
|
opts = {
|
||||||
|
window = {
|
||||||
|
options = {
|
||||||
|
number = false
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
{ "nvim-treesitter/nvim-treesitter", build = ":TSUpdate" },
|
||||||
{
|
{
|
||||||
"benlubas/molten-nvim",
|
"benlubas/molten-nvim",
|
||||||
|
|
@ -648,14 +659,6 @@ vim.api.nvim_create_autocmd('BufEnter', {
|
||||||
vim.opt_local.formatoptions:append("t")
|
vim.opt_local.formatoptions:append("t")
|
||||||
end,
|
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
|
-- Comments
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue