Something went wrong. Try again.
A very fast neovim config :D
Something went wrong. Try again.
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172-- Appearance and Displayvim.opt.number = truevim.opt.relativenumber = truevim.opt.signcolumn = "yes"vim.opt.showmode = falsevim.opt.list = truevim.opt.listchars = { tab = "» ", trail = "·", nbsp = "␣" }vim.opt.termguicolors = truevim.opt.colorcolumn = "0"-- vim.opt.cursorline = true -- personally i don't use cursorline :(
-- Indentation and Formattingvim.opt.smartindent = truevim.opt.autoindent = truevim.opt.expandtab = truevim.opt.shiftwidth = 4vim.opt.tabstop = 4vim.opt.breakindent = truevim.opt.wrap = false
-- File Handling and Sessionsvim.opt.undofile = truevim.opt.swapfile = falsevim.opt.writebackup = falsevim.opt.sessionoptions = "buffers,curdir,folds,help,tabpages,terminal,globals"vim.opt.backup = falsevim.opt.undodir = os.getenv("HOME") .. "/.local/share/nvim/undodir"-- vim.opt.clipboard = "unnamedplus"
-- Completion and UIvim.opt.pumheight = 10vim.opt.completeopt = { "menu", "menuone", "noselect" }vim.opt.cmdheight = 0 -- set to 1 or higher when debugging
-- Folding and Syntaxvim.opt.foldenable = truevim.opt.foldlevel = 99vim.opt.foldmethod = "manual" -- NOTE: other foldmethod doesn't work :)-- vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
-- Search and Navigationvim.opt.hlsearch = truevim.keymap.set("n", "<Esc>", "<cmd>nohlsearch<CR>")vim.opt.jumpoptions = "view"vim.opt.scrolloff = 10vim.opt.incsearch = true
-- Miscellaneousvim.opt.ignorecase = truevim.opt.smartcase = truevim.opt.sidescrolloff = 5vim.opt.updatetime = 100vim.opt.fillchars = { foldopen = "", foldclose = "", fold = " ", foldsep = " ", diff = "/", eob = " ",}vim.opt.syntax = "on"vim.opt.spelloptions = "camel,noplainbuffer"vim.opt.wildmode = "longest:full:full"vim.opt.wildignore = "*.docx,*.jpg,*.png,*.gif,*.pdf,*.pyc,*.exe,*.flv,*.img,*.xlsx,*DS_STORE,*.db"vim.opt.isfname:append("@-@")vim.g.have_nerd_font = true-- vim.opt.guicursor = "" -- keeps the cursor same in insert modevim.opt.exrc = true -- enable .nvimrc support
vim.g.zig_fmt_autosave = 0 -- disable annoying zig auto formatting on writevim.g.zig_fmt_parse_errors = 0 -- disable error on new pane zig