init
This commit is contained in:
40
lua/options.lua
Normal file
40
lua/options.lua
Normal file
@@ -0,0 +1,40 @@
|
||||
local o = vim.o
|
||||
|
||||
vim.g.mapleader = " "
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
|
||||
o.laststatus = 3 -- global statusline
|
||||
o.showmode = false
|
||||
|
||||
o.clipboard = "unnamedplus"
|
||||
|
||||
-- Indenting
|
||||
o.expandtab = true
|
||||
o.shiftwidth = 2
|
||||
o.smartindent = true
|
||||
o.tabstop = 2
|
||||
o.softtabstop = 2
|
||||
|
||||
vim.opt.fillchars = { eob = " " }
|
||||
o.ignorecase = true
|
||||
o.smartcase = true
|
||||
o.mouse = "a"
|
||||
|
||||
o.number = true
|
||||
|
||||
o.signcolumn = "yes"
|
||||
o.splitbelow = true
|
||||
o.splitright = true
|
||||
o.termguicolors = true
|
||||
o.timeoutlen = 400
|
||||
o.undofile = true
|
||||
o.cursorline = true
|
||||
|
||||
-- add binaries installed by mason.nvim to path
|
||||
local is_windows = vim.loop.os_uname().sysname == "Windows_NT"
|
||||
vim.env.PATH = vim.env.PATH .. (is_windows and ";" or ":") .. vim.fn.stdpath "data" .. "/mason/bin"
|
||||
|
||||
vim.api.nvim_set_hl(0, "IndentLine", { link = "Comment" })
|
||||
|
||||
Reference in New Issue
Block a user