Rewrote neovim config

This commit is contained in:
2023-08-19 19:22:56 +02:00
parent 0c4b569ab5
commit d07a82fff2
23 changed files with 177 additions and 196 deletions

View File

@ -1,16 +1,7 @@
-- Autocmds are automatically loaded on the VeryLazy event
-- Default autocmds that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/autocmds.lua
-- Add any additional autocmds here
local on = vim.api.nvim_create_autocmd
-- Disable spell checking
vim.api.nvim_clear_autocmds({
group = "lazyvim_wrap_spell",
})
-- Enable wrapping
vim.api.nvim_create_autocmd("FileType", {
pattern = { "gitcommit", "markdown" },
on("VimEnter", {
callback = function()
vim.opt_local.wrap = true
require("nvim-tree.api").tree.toggle({ focus = false })
end,
})