376 current 2025-05-03 18:04:12 25.05.20250424.f771eb4 6.12.24 *
This commit is contained in:
@@ -4,15 +4,24 @@ local opts = { noremap = true, silent = true }
|
||||
vim.api.nvim_set_keymap("n", "<C-a>z", ":Goyo 80<CR>", opts)
|
||||
vim.api.nvim_set_keymap("n", "<C-a>q", ":Goyo!<CR>", opts)
|
||||
|
||||
-- https://github.com/junegunn/goyo.vim/issues/180
|
||||
-- automatically resize goyo when nvim resizes
|
||||
vim.api.nvim_create_autocmd("VimResized", {
|
||||
callback = function()
|
||||
if vim.fn.exists('#goyo') == 1 then
|
||||
vim.cmd("normal <C-w>=")
|
||||
if vim.t.goyo_master == 1 then
|
||||
vim.cmd([[exe "normal \<c-w>="]])
|
||||
end
|
||||
end,
|
||||
})
|
||||
|
||||
-- vim.api.nvim_create_autocmd("VimResized", {
|
||||
-- callback = function()
|
||||
-- if vim.fn.exists('#goyo') == 1 then
|
||||
-- vim.cmd("normal <C-w>=")
|
||||
-- end
|
||||
-- end,
|
||||
-- })
|
||||
|
||||
-- hide and unhide lualine when entering and leaving goyo
|
||||
|
||||
local lualine = require('lualine')
|
||||
|
||||
@@ -4,3 +4,13 @@ require('nvim-treesitter.configs').setup {
|
||||
highlight = { enable = true },
|
||||
indent = { enable = true },
|
||||
}
|
||||
|
||||
require('nvim-treesitter.configs').setup({
|
||||
highlight = {
|
||||
enable = true, -- keep TS for everything else
|
||||
disable = { "markdown", "markdown_inline" },
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
indent = { enable = false },
|
||||
incremental_selection = { enable = false },
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user