Updated config
This commit is contained in:
53
.config/nvim/lua/settings.lua
Normal file
53
.config/nvim/lua/settings.lua
Normal file
@ -0,0 +1,53 @@
|
||||
-- Globals
|
||||
local g = vim.g
|
||||
g.mapleader = " "
|
||||
|
||||
for _, provider in ipairs { "node", "perl", "python3", "ruby" } do
|
||||
g["loaded_" .. provider .. "_provider"] = 0
|
||||
end
|
||||
|
||||
-- Options
|
||||
local opt = vim.opt
|
||||
opt.autowrite = false
|
||||
opt.clipboard = "unnamedplus"
|
||||
opt.completeopt = "menu,menuone,noinsert"
|
||||
opt.conceallevel = 0
|
||||
opt.cursorline = true
|
||||
opt.cursorlineopt = "number"
|
||||
opt.grepformat = "%f:%l:%c:%m"
|
||||
opt.grepprg = "rg --grep"
|
||||
opt.ignorecase = false
|
||||
opt.mouse = "a"
|
||||
opt.ruler = false
|
||||
opt.sessionoptions = { "buffers", "curdir", "tabpages", "winsize" }
|
||||
opt.shortmess:append "scCFI"
|
||||
opt.showmode = false
|
||||
opt.spell = false
|
||||
opt.splitbelow = true
|
||||
opt.splitright = true
|
||||
opt.termguicolors = true
|
||||
opt.updatetime = 250
|
||||
opt.virtualedit = "onemore"
|
||||
opt.wildmode = "longest:full,full"
|
||||
opt.wrap = false
|
||||
|
||||
-- Indentation
|
||||
opt.autoindent = true
|
||||
opt.expandtab = false
|
||||
opt.shiftwidth = 4
|
||||
opt.smartindent = true
|
||||
opt.softtabstop = 4
|
||||
opt.tabstop = 4
|
||||
|
||||
-- UI
|
||||
opt.fillchars = { eob = " ", vert = " " }
|
||||
opt.laststatus = 0
|
||||
opt.number = true
|
||||
opt.relativenumber = false
|
||||
opt.showtabline = 0
|
||||
opt.signcolumn = "yes"
|
||||
opt.statusline = "%{repeat('─',winwidth('.'))}"
|
||||
|
||||
-- Undo
|
||||
opt.undofile = true
|
||||
opt.undolevels = 10000
|
Reference in New Issue
Block a user