nvim ftplugin

This commit is contained in:
thek4n 2024-01-15 09:41:59 +03:00
parent d9dc604fd7
commit c065b140e2
4 changed files with 11 additions and 5 deletions

1
.gitignore vendored
View File

@ -22,3 +22,4 @@ home/user/.gnupg/*
lazy-lock.json lazy-lock.json
home/user/.config/ranger/plugins home/user/.config/ranger/plugins
home/user/.termux/shell

View File

@ -0,0 +1,5 @@
local opt = vim.opt_local
opt.tabstop = 2
opt.softtabstop = 2
opt.shiftwidth = 2

View File

@ -0,0 +1,2 @@
vim.bo.textwidth = 72
vim.wo.colorcolumn = '+0'

View File

@ -35,23 +35,21 @@ opt.hidden = true
opt.expandtab = true opt.expandtab = true
opt.smarttab = true opt.smarttab = true
opt.tabstop = 4 opt.tabstop = 4
opt.cursorline = true
opt.softtabstop = 4 opt.softtabstop = 4
opt.shiftwidth = 4 opt.shiftwidth = 4
opt.autoindent = true opt.autoindent = true
opt.smartindent = true opt.smartindent = true
opt.showtabline = 2
opt.cursorline = true
opt.wrap = false opt.wrap = false
opt.ttyfast = true opt.ttyfast = true
opt.autoread = true opt.autoread = true
opt.errorbells = false opt.errorbells = false
opt.visualbell = false opt.visualbell = false
opt.showcmd = true opt.showcmd = true
opt.showtabline = 2
opt.ignorecase = true opt.ignorecase = true
opt.smartcase = true -- if search line hasn`t Upper case chars - ignore case search, else case-sensivity search opt.smartcase = true -- if search line hasn`t Upper case chars - ignore case search, else case-sensivity search