mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
update nvim config
This commit is contained in:
parent
e3f9d23175
commit
1e68462bc1
21 changed files with 350 additions and 99 deletions
|
|
@ -1,25 +1,35 @@
|
|||
--
|
||||
local set = vim.opt
|
||||
|
||||
-- General Settings
|
||||
--
|
||||
|
||||
vim.opt.showmode = false -- disable mode in the command line, because i use lualine
|
||||
set.termguicolors = true
|
||||
set.updatetime = 50
|
||||
set.showmode = false -- disable mode in the command line, because i use lualine
|
||||
|
||||
--
|
||||
-- Editor settings
|
||||
--
|
||||
|
||||
vim.opt.scrolloff=20
|
||||
set.hlsearch = false
|
||||
set.incsearch = true
|
||||
set.laststatus = 3
|
||||
set.scrolloff=20
|
||||
--vim.opt.sidescrolloff = 8
|
||||
vim.opt.cursorline = true
|
||||
set.cursorline = true
|
||||
|
||||
-- line numbers
|
||||
vim.opt.number = true
|
||||
vim.opt.relativenumber = true
|
||||
vim.opt.numberwidth = 5
|
||||
vim.opt.statuscolumn = '%=%{v:relnum?v:relnum:v:lnum} %s '
|
||||
set.number = true
|
||||
set.relativenumber = true
|
||||
set.numberwidth = 5
|
||||
set.statuscolumn = '%=%{v:relnum?v:relnum:v:lnum} %s '
|
||||
|
||||
-- indent
|
||||
vim.opt.smartindent = true
|
||||
set.tabstop = 4
|
||||
set.softtabstop = 4
|
||||
set.shiftwidth = 4
|
||||
set.autoindent = true
|
||||
set.smartindent = true
|
||||
|
||||
-- Filetypes
|
||||
vim.filetype.add({
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue