my demo first config lua
This commit is contained in:
54
lua/config/options.lua
Normal file
54
lua/config/options.lua
Normal file
@@ -0,0 +1,54 @@
|
||||
-- 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
|
||||
vim.g.mapleader = " "
|
||||
vim.g.snippets = "luasnip"
|
||||
|
||||
vim.o.langmap =
|
||||
"ФИСВУАПРШОЛДЬТЩЗЙКЫЕГМЦЧНЯ;ABCDEFGHIJKLMNOPQRSTUVWXYZ,фисвуапршолдьтщзйкыегмцчня;abcdefghijklmnopqrstuvwxyz"
|
||||
|
||||
vim.o.relativenumber = false
|
||||
vim.o.spelllang = "ru_ru,en_us"
|
||||
vim.o.linebreak = true
|
||||
vim.g.autoformat = false
|
||||
|
||||
local opt = vim.o
|
||||
|
||||
opt.mouse = ""
|
||||
opt.number = true
|
||||
opt.relativenumber = true
|
||||
opt.conceallevel = 3
|
||||
opt.hidden = true
|
||||
opt.expandtab = true
|
||||
opt.tabstop = 4
|
||||
opt.softtabstop = 4
|
||||
opt.shiftwidth = 4
|
||||
opt.smartindent = true
|
||||
opt.errorbells = false
|
||||
opt.wrap = false
|
||||
opt.swapfile = false
|
||||
opt.undofile = true
|
||||
opt.undodir = os.getenv "HOME" .. "/.cache/nvim/undodir"
|
||||
opt.hlsearch = false
|
||||
opt.incsearch = true
|
||||
opt.ignorecase = true
|
||||
opt.smartcase = true
|
||||
opt.termguicolors = true
|
||||
opt.scrolloff = 4
|
||||
opt.sidescrolloff = 4
|
||||
opt.showmode = false
|
||||
opt.clipboard = "unnamedplus"
|
||||
opt.splitbelow = true
|
||||
opt.splitright = true
|
||||
opt.autowrite = true
|
||||
opt.list = true
|
||||
opt.listchars = "tab:\\ ,trail:-"
|
||||
opt.laststatus = 3
|
||||
opt.cmdheight = 1
|
||||
opt.updatetime = 50
|
||||
opt.signcolumn = "yes"
|
||||
opt.equalalways = false
|
||||
opt.splitkeep = "screen"
|
||||
opt.shortmess = "filnxtToOFWIcC"
|
||||
|
||||
require("lazyvim.util").get_root = vim.loop.cwd
|
||||
Reference in New Issue
Block a user