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

35 lines
1.1 KiB
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" })
local function escape(str)
-- You need to escape these characters to work correctly
local escape_chars = [[;,."|\]]
return vim.fn.escape(str, escape_chars)
end
vim.g.maplocalleader = ","
vim.g.mapleader = " "
vim.keymap.set("n", "<leader>m", "<CMD>echo hi<cr>")
-- vim.keymap.set("n", "m", "h", { noremap = true })
-- vim.keymap.set("n", "<C-S-M>", function()
-- vim.notify("presed")
-- end)
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"
vim.g.root_spec = {
"lsp",
{ ".git", "lua", ".org_root" },
"cwd",
}