nvim ftplugin
This commit is contained in:
parent
d9dc604fd7
commit
c065b140e2
1
.gitignore
vendored
1
.gitignore
vendored
@ -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
|
||||||
|
|||||||
5
home/user/.config/nvim/after/ftplugin/cpp.lua
Normal file
5
home/user/.config/nvim/after/ftplugin/cpp.lua
Normal file
@ -0,0 +1,5 @@
|
|||||||
|
local opt = vim.opt_local
|
||||||
|
|
||||||
|
opt.tabstop = 2
|
||||||
|
opt.softtabstop = 2
|
||||||
|
opt.shiftwidth = 2
|
||||||
2
home/user/.config/nvim/after/ftplugin/gitcommit.lua
Normal file
2
home/user/.config/nvim/after/ftplugin/gitcommit.lua
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
vim.bo.textwidth = 72
|
||||||
|
vim.wo.colorcolumn = '+0'
|
||||||
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user