vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" if not vim.loop.fs_stat(lazypath) then vim.fn.system({ "git", "clone", "--filter=blob:none", "https://github.com/folke/lazy.nvim.git", "--branch=stable", -- latest stable release lazypath, }) end vim.opt.rtp:prepend(lazypath) require("lazy").setup({ -- Color Scheme "folke/tokyonight.nvim", -- Syntax highlighting 'nvim-treesitter/nvim-treesitter', -- Status line 'nvim-lualine/lualine.nvim', -- Git 'airblade/vim-gitgutter', -- File System 'stevearc/oil.nvim', { 'OXY2DEV/markview.nvim', lazy = false, priority = 49, }, -- Telescope { 'nvim-telescope/telescope.nvim', tag = '0.1.5', dependencies = { 'nvim-lua/plenary.nvim', 'sharkdp/fd', { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' }, } }, -- Icons { "echasnovski/mini.icons", lazy = true, init = function() package.preload["nvim-web-devicons"] = function() require("mini.icons").mock_nvim_web_devicons() return package.loaded["nvim-web-devicons"] end end, }, }) -- Colorscheme vim.cmd [[colorscheme tokyonight-moon]] vim.opt.termguicolors = true vim.o.background = "dark" -- Map leader to space vim.g.mapleader = ' ' -- Tabs sind für lutscher vim.opt.tabstop = 2 vim.opt.shiftwidth = 2 vim.o.expandtab = true -- Numbers on the side vim.wo.number = true vim.wo.relativenumber = true vim.o.ruler = true -- Show something in the command line not sure vim.o.showcmd = true -- reload config without restart vim.keymap.set('n', 'r', ':so %') -- Lualine setup require('lualine').setup { options = { icons_enabled = true, theme = 'auto', section_separators = { left = '', right = '' }, component_separators = { left = '', right = '' } }, } -- Treesitter setup require('nvim-treesitter.configs').setup { highlight = { enable = true } } -- Telescope setup local telescope = require('telescope') telescope.load_extension('fzf') vim.keymap.set('n', 'tf', ':Telescope find_files') -- file search vim.keymap.set('n', 'tb', ':Telescope buffers') -- buffer peak vim.keymap.set('n', 'th', ':Telescope help_tags') -- help menu vim.keymap.set('n', 'tt', ':Telescope treesitter ') -- treesitter symbol menu vim.keymap.set('n', 'tp', ':Telescope builtin') -- picker picker lmao require('oil').setup()