.nvim/lua/config/options.lua
Erica Marigold ebcb199805
Initial config divergence from luka
Minor customizations for keybinds and adds luau-lsp support.
2025-02-05 00:39:41 +05:30

25 lines
603 B
Lua

vim.g.mapleader = " "
vim.g.maplocalleader = "\\"
vim.opt.expandtab = true
vim.opt.tabstop = 2
vim.opt.shiftwidth = 2
vim.opt.number = true
vim.opt.relativenumber = true
vim.opt.cursorline = true
vim.opt.signcolumn = "yes"
vim.opt.scrolloff = 8
-- vim.opt.clipboard = "unnamedplus"
vim.opt.pumblend = 5
vim.opt.winblend = 5
vim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>")
vim.keymap.set("n", "<leader>ft", "<cmd>lua vim.lsp.buf.format()<CR>", { noremap = true, silent = true })
vim.api.nvim_create_autocmd("TextYankPost", {
callback = function()
vim.highlight.on_yank()
end,
})