2025-04-24 22:05:47 +05:00
|
|
|
vim.g.mapleader = ' '
|
|
|
|
vim.g.maplocalleader = ' '
|
|
|
|
|
|
|
|
vim.g.have_nerd_font = true
|
|
|
|
|
|
|
|
vim.opt.number = true
|
|
|
|
vim.opt.relativenumber = true
|
|
|
|
|
|
|
|
vim.opt.mouse = 'a'
|
|
|
|
|
|
|
|
vim.opt.showmode = false
|
|
|
|
|
|
|
|
vim.schedule(function()
|
|
|
|
vim.opt.clipboard = 'unnamedplus'
|
|
|
|
end)
|
|
|
|
|
|
|
|
vim.opt.breakindent = true
|
|
|
|
|
|
|
|
-- save undo history
|
|
|
|
vim.opt.undofile = true
|
|
|
|
|
|
|
|
-- Case insensitve search normally
|
|
|
|
vim.opt.ignorecase = true
|
|
|
|
vim.opt.smartcase = true
|
|
|
|
|
|
|
|
-- Configure how new splits should be opened
|
|
|
|
vim.opt.splitright = true
|
|
|
|
vim.opt.splitbelow = true
|
|
|
|
|
|
|
|
-- highlight current cursor line
|
|
|
|
vim.opt.cursorline = true
|
|
|
|
|
|
|
|
-- Minimal number of screen lines to keep above and below the cursor.
|
2025-05-01 07:50:51 +05:00
|
|
|
vim.opt.scrolloff = 10
|
2025-04-24 22:05:47 +05:00
|
|
|
|
|
|
|
-- if performing an operation that would fail due to unsaved changes in the buffer (like `:q`),
|
|
|
|
-- instead raise a dialog asking if you wish to save the current file(s)
|
|
|
|
-- See `:help 'confirm'`
|
|
|
|
vim.opt.confirm = true
|
|
|
|
|
2025-04-29 07:38:49 +05:00
|
|
|
vim.opt.fillchars:append({ eob = ' ' })
|
2025-04-24 22:05:47 +05:00
|
|
|
|
2025-04-29 07:38:49 +05:00
|
|
|
vim.opt.tabstop = 4
|
|
|
|
vim.opt.shiftwidth = 4
|
|
|
|
|
2025-05-01 07:50:51 +05:00
|
|
|
vim.opt.hlsearch = false
|
|
|
|
|
2025-04-29 07:38:49 +05:00
|
|
|
-- Example for configuring Neovim to load user-installed installed Lua rocks:
|
|
|
|
package.path = package.path .. ';' .. vim.fn.expand('$HOME') .. '/.luarocks/share/lua/5.1/?/init.lua;'
|
|
|
|
package.path = package.path .. ';' .. vim.fn.expand('$HOME') .. '/.luarocks/share/lua/5.1/?.lua;'
|