Modifing config

Signed-off-by: Taken <taken@mairimashita.org>
This commit is contained in:
2023-08-20 22:12:51 +02:00
parent d33475f518
commit aa8223b7a1
6 changed files with 19 additions and 32 deletions

57
lua/taken/core/opts.lua Normal file
View File

@@ -0,0 +1,57 @@
local g = vim.g
local o = vim.o
local opt = vim.opt
local cmd = vim.cmd
local status, prefs = pcall(require, "taken.prefs")
if not status then
prefs = {}
end
if prefs.colorscheme == nil then
cmd("colorscheme default")
else
cmd("colorscheme " .. prefs.colorscheme)
end
local cursorcolumncolor = vim.fn.synIDattr(vim.fn.hlID("CursorColumn"), "bg")
cmd("hi CursorLine guibg=" .. cursorcolumncolor)
g.mapleader = " "
g.maplocalleader = "."
-- opt.cursorline = true
-- opt.cursorcolumn = true
opt.nu = true
opt.relativenumber = true
opt.tabstop = 4
opt.softtabstop = 4
opt.shiftwidth = 4
opt.expandtab = true
opt.smartindent = true
opt.wrap = false
o.ignorecase = true
o.smartcase = true
opt.hlsearch = false
opt.incsearch = true
opt.termguicolors = true
opt.scrolloff = 8
opt.signcolumn = "yes"
opt.isfname:append("@-@")
opt.updatetime = 50
--options for whichkey
vim.o.timeout = true
vim.o.timeoutlen = 300
-- Options for nvim-tree
g.loaded_netrw = 1
g.loaded_netrwPlugin = 1