neovim from scracth part 1
This commit is contained in:
parent
3480fa92fe
commit
21bcbd0bdc
8 changed files with 1051 additions and 805 deletions
43
.config/nvim/lua/config/options.lua
Normal file
43
.config/nvim/lua/config/options.lua
Normal file
|
@ -0,0 +1,43 @@
|
|||
vim.g.mapleader = ' '
|
||||
vim.g.maplocalleader = ' '
|
||||
|
||||
vim.g.have_nerd_font = true
|
||||
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
|
||||
vim.opt.mouse = 'a'
|
||||
|
||||
vim.opt.showmode = false
|
||||
|
||||
vim.schedule(function()
|
||||
vim.opt.clipboard = 'unnamedplus'
|
||||
end)
|
||||
|
||||
vim.opt.breakindent = true
|
||||
|
||||
-- save undo history
|
||||
vim.opt.undofile = true
|
||||
|
||||
-- Case insensitve search normally
|
||||
vim.opt.ignorecase = true
|
||||
vim.opt.smartcase = true
|
||||
|
||||
-- Configure how new splits should be opened
|
||||
vim.opt.splitright = true
|
||||
vim.opt.splitbelow = true
|
||||
|
||||
-- highlight current cursor line
|
||||
vim.opt.cursorline = true
|
||||
|
||||
-- Minimal number of screen lines to keep above and below the cursor.
|
||||
vim.opt.scrolloff = 10
|
||||
|
||||
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
|
||||
-- instead raise a dialog asking if you wish to save the current file(s)
|
||||
-- See `:help 'confirm'`
|
||||
vim.opt.confirm = true
|
||||
|
||||
vim.opt.signcolumn = yes
|
||||
|
||||
vim.o.showtabline = 2
|
Loading…
Add table
Add a link
Reference in a new issue