mirror of
https://github.com/LazyVim/LazyVim.git
synced 2025-07-14 03:14:38 +02:00
feat(root): customizable root detection and :LazyRoot
command
This commit is contained in:
parent
5538ab2d64
commit
171a843edf
6 changed files with 126 additions and 38 deletions
|
@ -5,6 +5,10 @@ vim.g.maplocalleader = "\\"
|
|||
-- Enable LazyVim auto format
|
||||
vim.g.autoformat = true
|
||||
|
||||
-- LazyVim root dir detection
|
||||
-- Each entry can be a detector function like `lsp` or `cwd`, or a pattern like `.git` or `lua`.
|
||||
vim.g.root_spec = { "lsp", { ".git", "lua" }, "cwd" }
|
||||
|
||||
local opt = vim.opt
|
||||
|
||||
opt.autowrite = true -- Enable auto write
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue