mirror of
https://github.com/tuxdotrs/tnvim.git
synced 2025-07-07 05:46:34 +05:30
initial commit
This commit is contained in:
39
modules/home-manager/nvim/old/lua/options.lua
Normal file
39
modules/home-manager/nvim/old/lua/options.lua
Normal file
@ -0,0 +1,39 @@
|
||||
-- Global
|
||||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
|
||||
-- Settings
|
||||
vim.opt.nu = true
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.expandtab = true
|
||||
vim.opt.smartindent = true
|
||||
vim.opt.wrap = false
|
||||
vim.opt.swapfile = false
|
||||
vim.opt.backup = false
|
||||
vim.opt.undodir = os.getenv 'HOME' .. '/.vim/undodir'
|
||||
vim.opt.undofile = true
|
||||
vim.opt.hlsearch = false
|
||||
vim.opt.incsearch = true
|
||||
vim.opt.smartcase = true
|
||||
vim.opt.termguicolors = true
|
||||
vim.opt.scrolloff = 8
|
||||
vim.opt.signcolumn = 'yes'
|
||||
vim.opt.isfname:append '@-@'
|
||||
vim.opt.updatetime = 50
|
||||
vim.opt.clipboard = 'unnamedplus'
|
||||
vim.opt.spelllang = 'en_us'
|
||||
vim.opt.spell = true
|
||||
vim.opt.laststatus = 3
|
||||
vim.opt.mouse:append("a")
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
-- Neovide
|
||||
if vim.g.neovide then
|
||||
vim.o.guifont = 'JetBrains Mono Nerd Font:h14'
|
||||
vim.g.neovide_cursor_vfx_mode = 'railgun'
|
||||
end
|
Reference in New Issue
Block a user