feat: neovim config based on NvChad

This commit is contained in:
2024-11-02 23:21:50 +01:00
parent bddd2cdebf
commit acf7f7ca1f
11 changed files with 478 additions and 0 deletions

13
nvim/lua/myinit.lua Executable file
View File

@@ -0,0 +1,13 @@
local autocmd = vim.api.nvim_create_autocmd
-- Auto resize panes when resizing nvim window
-- autocmd("VimResized", {
-- pattern = "*",
-- command = "tabdo wincmd =",
-- })
-- Auto unfold all when entering a buffer
autocmd("BufWinEnter", { pattern = "*", command = "silent! :%foldopen!" })
vim.g.vscode_snippets_path = "~/.config/nvim/snippets"
vim.opt.relativenumber = true