2021-08-08 12:33:23 +00:00
|
|
|
local o = vim.o
|
|
|
|
local g = vim.g
|
|
|
|
|
2023-01-31 20:43:39 +00:00
|
|
|
-- Relative line numbers
|
|
|
|
o.relativenumber = true
|
|
|
|
|
2021-08-08 12:33:23 +00:00
|
|
|
-- True colors
|
|
|
|
o.termguicolors = true
|
|
|
|
|
2022-10-20 08:24:54 +00:00
|
|
|
-- Font for nvim GUI's
|
2022-10-26 11:08:20 +00:00
|
|
|
o.guifont = "Fira Code:h14"
|
2022-10-20 08:24:54 +00:00
|
|
|
|
2022-11-02 14:04:11 +00:00
|
|
|
-- Hide mouse when typing in neovide
|
|
|
|
g.neovide_hide_mouse_when_typing = true
|
|
|
|
|
|
|
|
-- Enable cursor particles in neovide
|
2022-11-17 07:18:56 +00:00
|
|
|
g.neovide_cursor_vfx_mode = "railgun"
|
2022-11-02 14:04:11 +00:00
|
|
|
|
2021-08-08 12:33:23 +00:00
|
|
|
-- Floating window transparency
|
|
|
|
o.winblend = 10
|
|
|
|
|
2022-10-20 08:24:54 +00:00
|
|
|
-- Set window title
|
|
|
|
o.title = true
|
2022-10-26 11:08:20 +00:00
|
|
|
o.titlestring = "NeoVim: " .. vim.fn.getcwd()
|
2022-10-20 08:24:54 +00:00
|
|
|
|
2021-08-17 19:36:48 +00:00
|
|
|
-- Diff settings
|
2022-10-26 11:08:20 +00:00
|
|
|
o.diffopt = "filler,internal,algorithm:histogram,indent-heuristic"
|
2021-08-17 19:36:48 +00:00
|
|
|
|
2021-10-06 13:31:09 +00:00
|
|
|
-- Allow switching buffers with unsaved changes
|
2022-09-02 20:49:56 +00:00
|
|
|
o.hidden = true
|
2021-10-06 13:31:09 +00:00
|
|
|
|
2021-08-18 06:29:44 +00:00
|
|
|
-- Show line numbers
|
2022-09-02 20:49:56 +00:00
|
|
|
o.number = true
|
2021-08-18 06:29:44 +00:00
|
|
|
|
2022-09-03 11:41:13 +00:00
|
|
|
o.guicursor = table.concat({
|
2022-10-26 11:08:20 +00:00
|
|
|
"i:ver1", -- Vertical bar cursor in insert mode
|
|
|
|
"a:blinkon1", -- Blinking cursor in all modes
|
|
|
|
}, ",")
|
2021-08-08 12:33:23 +00:00
|
|
|
|
2022-09-02 20:49:56 +00:00
|
|
|
-- Enable global statusline
|
|
|
|
o.laststatus = 3
|
|
|
|
|
2022-09-06 13:37:50 +00:00
|
|
|
o.cmdheight = 1
|
2021-08-08 12:33:23 +00:00
|
|
|
|
|
|
|
-- Use suda by default
|
|
|
|
g.suda_smart_edit = 1
|
|
|
|
|
|
|
|
-- Case insensitive search
|
|
|
|
o.ignorecase = true
|
|
|
|
o.smartcase = true
|
|
|
|
|
2022-08-23 19:18:57 +00:00
|
|
|
-- Set leader
|
|
|
|
g.mapleader = " "
|
2022-09-02 21:33:55 +00:00
|
|
|
|
|
|
|
-- Indentation settings
|
|
|
|
o.tabstop = 4
|
|
|
|
o.shiftwidth = 4
|
|
|
|
o.smartindent = true
|