Added NeoVIM config

This commit is contained in:
Kulvir Singh
2024-01-01 02:53:52 +05:30
parent eed96f6800
commit da1c768f31
32 changed files with 1266 additions and 3067 deletions

26
nvim/lua/core/set.lua Normal file
View 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