Added NeoVIM config
This commit is contained in:
26
nvim/lua/core/set.lua
Normal file
26
nvim/lua/core/set.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
vim.opt.nu = true
|
||||
vim.opt.rnu = true
|
||||
|
||||
vim.opt.autoread = true
|
||||
|
||||
-- Prevent continue comment on new line
|
||||
vim.api.nvim_create_autocmd(
|
||||
"FileType",
|
||||
{ pattern = "*", command = [[setlocal formatoptions-=c formatoptions-=r formatoptions-=o]] }
|
||||
)
|
||||
|
||||
vim.opt.tabstop = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.shiftround = true
|
||||
vim.opt.expandtab = true
|
||||
|
||||
vim.opt.smartindent = true
|
||||
|
||||
vim.opt.wrap = true
|
||||
|
||||
vim.opt.scrolloff = 8
|
||||
vim.opt.signcolumn = 'yes'
|
||||
|
||||
vim.cmd.termguicolors = true
|
||||
|
||||
Reference in New Issue
Block a user