dotfiles/home/.config/nvim/lua/settings.lua

65 lines
1.1 KiB
Lua
Raw Normal View History

local o = vim.o
local g = vim.g
2023-01-31 22:43:39 +02:00
-- Relative line numbers
o.relativenumber = true
-- True colors
o.termguicolors = true
-- Floating window transparency
o.winblend = 10
-- Set window title
o.title = true
o.titlestring = "NeoVim: " .. vim.fn.getcwd()
2021-08-17 22:36:48 +03:00
-- Diff settings
o.diffopt = "filler,internal,algorithm:histogram,indent-heuristic"
2021-08-17 22:36:48 +03:00
-- Allow switching buffers with unsaved changes
o.hidden = true
2021-08-18 09:29:44 +03:00
-- Show line numbers
o.number = true
2021-08-18 09:29:44 +03:00
o.guicursor = table.concat({
"i:ver1", -- Vertical bar cursor in insert mode
"a:blinkon1", -- Blinking cursor in all modes
}, ",")
-- Enable global statusline
o.laststatus = 3
2022-09-06 16:37:50 +03:00
o.cmdheight = 1
-- Use suda by default
g.suda_smart_edit = 1
-- Case insensitive search
o.ignorecase = true
o.smartcase = true
2022-08-23 22:18:57 +03:00
-- Set leader
g.mapleader = " "
2022-09-03 00:33:55 +03:00
-- Indentation settings
o.tabstop = 4
o.shiftwidth = 4
o.smartindent = true
-- Firenvim settings
2023-09-20 16:23:52 +03:00
g.firenvim_config = {
localSettings = {
[".*"] = {
takeOver = "never",
},
},
}
2023-09-20 16:23:52 +03:00
-- Fold settings (for ufo)
o.foldcolumn = "1"
o.foldlevel = 99
o.foldlevelstart = 99
o.foldenable = true