Files
nvim/init.lua
2026-02-08 13:34:54 +05:30

61 lines
1.2 KiB
Lua

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")