Přidána klávesová zkratka pro otevření terminálu
This commit is contained in:
@ -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" })
|
||||
|
@ -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,
|
||||
})
|
||||
|
Reference in New Issue
Block a user