mirror of
https://github.com/Derisis13/dotfiles.git
synced 2025-12-06 19:32:50 +01:00
feat: neovim config based on NvChad
This commit is contained in:
13
nvim/lua/myinit.lua
Executable file
13
nvim/lua/myinit.lua
Executable 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
|
||||
Reference in New Issue
Block a user