dotfiles/nvim/init.lua
2024-06-22 21:32:40 +02:00

35 lines
768 B
Lua

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({
spec = {
{ import = "plugins"}
}
})
if vim.g.neovide == true then
vim.api.nvim_set_keymap('n', "<F11>", ":let g:neovide_fullscreen = !g:neovide_fullscreen<CR>", {})
end
vim.opt.splitright = true
vim.opt.splitbelow = true
vim.opt.shiftwidth = 2
vim.opt.cmdheight = 0
vim.opt.guifont = "jetbrains mono:h11"
vim.opt.termguicolors = true
vim.wo.number = true
vim.opt.fillchars = {
vert = " "
}
vim.opt.confirm = true