diff options
| author | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-24 20:35:27 +0900 |
|---|---|---|
| committer | TheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com> | 2025-01-24 20:35:27 +0900 |
| commit | c80a54e42b52ce297f0f2f71af23c562832025c7 (patch) | |
| tree | dcce8bb977a770f473325d48f6f70b21d9818a40 /ar/.config/NvChad/lua/custom/init.lua | |
init
Diffstat (limited to 'ar/.config/NvChad/lua/custom/init.lua')
| -rw-r--r-- | ar/.config/NvChad/lua/custom/init.lua | 55 |
1 files changed, 55 insertions, 0 deletions
diff --git a/ar/.config/NvChad/lua/custom/init.lua b/ar/.config/NvChad/lua/custom/init.lua new file mode 100644 index 0000000..3dea148 --- /dev/null +++ b/ar/.config/NvChad/lua/custom/init.lua @@ -0,0 +1,55 @@ +-- local autocmd = vim.api.nvim_create_autocmd + +-- Auto resize panes when resizing nvim window +-- autocmd("VimResized", { +-- pattern = "*", +-- command = "tabdo wincmd =", +-- }) + +-- Visual Studio Code +if vim.g.vscode then + -- Plug 'asvetliakov/vim-easymotion', has('nvim') ? {} : { 'on': [] } + vim.cmd [[source $HOME/.config/nvim/vscode/settings.vim]] + vim.cmd [[source $HOME/.config/nvim/vscode/easymotion-config.vim]] +end + +vim.g.python3_host_prog = "/usr/bin/python3" +-- vim.g.loaded_python3_provider = 1 + +local opt = vim.opt +local api = vim.api + +-- Background +-- opt.background = "dark" + +-- Backspace +opt.backspace = "indent,eol,start" + +-- Clipboard +opt.clipboard:append "unnamedplus" + +-- Column +opt.colorcolumn = "110" + +-- Disable persistent undo for files in /private directory +api.nvim_create_autocmd("BufReadPre", { pattern = "/private/*", command = "set noundofile" }) + +-- Indenting +opt.autoindent = true + +-- line numbers +opt.number = true -- shows absolute line number on cursor line (when relative number is on)local +opt.relativenumber = true -- show relative line numbers +opt.scrolloff = 9 + +-- Swap file disable +opt.swapfile = false + +-- Words +-- opt.iskeyword:append "-" -- consider string-string as whole word + +-- Wrap +opt.wrap = false + +-- Undo persistent enable for other files +opt.undofile = true |
