dotfiles/nvim/init.lua

39 lines
825 B
Lua
Raw Normal View History

2023-11-14 01:38:00 +01:00
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
2023-11-21 23:43:08 +01:00
2023-11-14 01:38:00 +01:00
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)
2024-03-11 15:09:18 +01:00
require("lazy").setup({
spec = {
{ import = "plugins"}
}
})
2023-11-14 01:38:00 +01:00
2023-11-17 21:40:23 +01:00
if vim.g.neovide == true then
vim.api.nvim_set_keymap('n', "<F11>", ":let g:neovide_fullscreen = !g:neovide_fullscreen<CR>", {})
end
2023-11-21 23:43:08 +01:00
vim.opt.splitright = true
vim.opt.splitbelow = true
2023-11-14 01:38:00 +01:00
vim.opt.shiftwidth = 2
2023-11-18 17:27:19 +01:00
vim.opt.cmdheight = 0
2023-11-21 23:43:08 +01:00
vim.opt.guifont = "jetbrains mono:h11"
2023-11-18 17:27:19 +01:00
vim.opt.termguicolors = true
vim.wo.number = true
2023-11-21 23:43:08 +01:00
vim.opt.fillchars = {
vert = " "
}
2024-06-23 19:33:59 +02:00
vim.diagnostic.config({
virtual_text = true
})
vim.cmd[[colorscheme dracula]]