Rewrote neovim config
This commit is contained in:
parent
0c4b569ab5
commit
d07a82fff2
23 changed files with 177 additions and 196 deletions
|
@ -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,
|
||||
})
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue