25 lines
603 B
Lua
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,
|
|
})
|