vim.g.mapleader = ' ' vim.opt.number = true -- Line numbers vim.opt.relativenumber = true -- Relative line numbers vim.opt.tabstop = 2 -- Tab width vim.opt.shiftwidth = 2 -- Indent width vim.opt.expandtab = true -- Use spaces instead of tabs vim.opt.wrap = true --vim.cmd.colorscheme("retrobox") vim.opt.termguicolors = true vim.opt.clipboard = 'unnamedplus' -- System clipboard vim.api.nvim_set_hl(0, "LineNr", { ctermfg = 8 }) vim.api.nvim_set_hl(0, "Normal", { bg = "none" }) vim.api.nvim_set_hl(0, "NormalFloat", { bg = "none" }) vim.api.nvim_set_hl(0, "EndOfBuffer", { bg = "none" }) -- Git signs require('gitsigns').setup() require('flash').setup() vim.keymap.set({"n","x","o"}, "s", function() require("flash").jump() end) require("nvim-treesitter").setup({ ensure_installed = { "lua", "python", "c", "cpp", "go", "bash", "json", "yaml", "html", "css", "javascript", "markdown", "markdown_inline" }, auto_install = true, highlight = { enable = true, additional_vim_regex_highlighting = false, }, indent = { enable = true, }, }) require("rakshit") function _G.my_statusline() local w = vim.api.nvim_win_get_width(0) if w > 140 then return "%F %y %m %= %l:%c %p%%" else return "%f %= %l:%c" end end vim.o.statusline = "%!v:lua.my_statusline()"