Something went wrong. Try again.
My personal nvim config files
Something went wrong. Try again.
2.3 kB · 47 lines
Lua
at main
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748-- Default optionsvim.opt.whichwrap:append "<,>,[,],h,l" -- move to other line with left right navigation at the line edgesvim.opt.expandtab = true -- tabs are spaces, not tabsvim.opt.tabstop = 4 -- an indentation every 4 spacesvim.opt.softtabstop = 4 -- let backspace delete 4 spaces of indentvim.opt.shiftwidth = 4 -- use indents of 4 spacesvim.opt.listchars = "tab:|-,trail:.,extends:>,precedes:<" -- map special charactersvim.opt.backup = false -- disable backup filevim.opt.swapfile = false -- disable swapfilevim.opt.undofile = true -- persistent undo across sessionsvim.opt.clipboard = "unnamedplus" -- allows neovim to access the system clipboardvim.opt.wrap = false -- display line without breaking into multiplevim.opt.spelllang = { "en", "pt_br", "fr" } -- configured spell check languagesvim.opt.number = true -- numbered linesvim.opt.ignorecase = true -- ignore case in search patternsvim.opt.smartcase = true -- case sensitive when Upper Case is presentvim.opt.autoindent = true -- indent at the same level of the previous linevim.opt.scrolloff = 8 -- keep 8 lines around the cursorvim.opt.updatetime = 50 -- snappy CursorHoldvim.opt.winborder = "rounded" -- global border settingvim.opt.fcs = 'eob: ' -- remove the ~ chars after the end of buffer
-- Languages that defaults to 2 spaces indentationvim.api.nvim_create_autocmd("FileType", { pattern = { "html", "htmldjango", "javascript", "json", "lua", "markdown", "toml", "typescript", "xml", "yaml", }, callback = function() vim.opt_local.tabstop = 2 vim.opt_local.softtabstop = 2 vim.opt_local.shiftwidth = 2 end,})
-- Show invisible charactersvim.cmd [[ set invlist]]