dotfiles/.config/nvim/lua/config/options.lua

30 lines
935 B
Lua

-- Options are automatically loaded before lazy.nvim startup
-- Default options that are always set: https://github.com/LazyVim/LazyVim/blob/main/lua/lazyvim/config/options.lua
-- Add any additional options here
local opt = vim.opt
opt.scrolloff = 2
-- vim.api.nvim_set_hl(0, "OrgBulletsDash", { fg = "#FFFFFF" })
vim.g.maplocalleader = ","
vim.g.lazyvim_python_lsp = "basedpyright"
-- vim.g.lazyvim_rust_diagnostics = "bacon-ls"
vim.g.ai_cmp = false
vim.g.snacks_animate = false
opt.spell = true
opt.wrap = true
-- opt.spelllang = { "en", "en-academic" }
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",
}