Přidána klávesová zkratka pro otevření terminálu

This commit is contained in:
archos
2025-03-29 16:06:39 +01:00
parent a91e718731
commit 4b9adc7307
3 changed files with 25 additions and 18 deletions

View File

@ -1,3 +1,4 @@
-- Keymaps are automatically loaded on the VeryLazy event
-- Default keymaps that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/keymaps.lua
-- Add any additional keymaps here
vim.keymap.set("n", "<leader>tt", ":terminal<CR>", { desc = "Otevři terminál" })

View File

@ -1,4 +1,10 @@
-- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
vim.opt.textwidth = 80
vim.api.nvim_create_autocmd("FileType", {
pattern = "markdown",
callback = function()
vim.opt_local.textwidth = 90 -- Tvrdé zalamování po 90 znacích
vim.opt_local.formatoptions = "t" -- Automatické zalamování při psaní
end,
})