Files
dotfiles/.config/nvim/init.lua

65 lines
1.4 KiB
Lua

-- Grundeinstellungen
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
vim.opt.number = true
vim.opt.relativenumber = false
vim.opt.mouse = 'a'
vim.opt.showmode = false
vim.opt.clipboard = 'unnamedplus'
vim.opt.breakindent = true
vim.opt.undofile = true
vim.opt.ignorecase = true
vim.opt.smartcase = true
vim.opt.signcolumn = 'yes'
vim.opt.updatetime = 250
vim.opt.timeoutlen = 300
vim.opt.splitright = true
vim.opt.splitbelow = true
vim.opt.list = true
vim.opt.listchars = { tab = '» ', trail = '·', nbsp = '' }
vim.opt.inccommand = 'split'
vim.opt.cursorline = true
vim.opt.scrolloff = 10
vim.opt.hlsearch = true
-- Lade lazy.nvim
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", -- neueste stabile Version
lazypath,
})
end
vim.opt.rtp:prepend(lazypath)
-- Lade Plugins
require("lazy").setup({
-- Grundlegende Plugins
{ import = "custom.plugins" },
-- Colorscheme
{
"folke/tokyonight.nvim",
lazy = false,
priority = 1000,
config = function()
require("tokyonight").setup({
style = "storm",
transparent = false,
terminal_colors = true,
})
vim.cmd.colorscheme "tokyonight"
end,
},
})
-- Lade benutzerdefinierte Einstellungen
require("custom.config")
-- Lade Spracheinstellungen
require("custom.lsp")