From af7e104cbe98108aee5fa98a2c2c3de064ef9f88 Mon Sep 17 00:00:00 2001 From: Daniel Fichtinger Date: Sat, 25 Jan 2025 17:15:03 -0500 Subject: [PATCH] AutoYADM commit: 2025-01-25 17:15:03 --- .config/nvim/lua/config/options.lua | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/.config/nvim/lua/config/options.lua b/.config/nvim/lua/config/options.lua index c3d1235c..8ec2c967 100644 --- a/.config/nvim/lua/config/options.lua +++ b/.config/nvim/lua/config/options.lua @@ -16,3 +16,15 @@ opt.wrap = true opt.spelllang = { "en" } -- opt.spelloptions = "camel" opt.clipboard = "unnamedplus" +-- ---Function returns the root dir of org files +-- ---@param buf number +-- ---@return string|string[] +-- local function org_root(buf) +-- local util = require("lazyvim.util.root") +-- local cwd = vim.uv.cwd() +-- end +vim.g.root_spec = { + "lsp", + { ".git", "lua", ".org_root" }, + "cwd", +}