dotfiles/nvim/init.lua

44 lines
979 B
Lua
Raw Normal View History

2023-11-14 01:38:00 +01:00
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)
plugins = {
2023-11-14 19:20:29 +01:00
{
'maxmx03/dracula.nvim',
lazy = false,
config = function ()
local dracula = require 'dracula'
dracula.setup()
vim.cmd.colorscheme 'dracula'
end
},
2023-11-14 01:38:00 +01:00
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function ()
local configs = require("nvim-treesitter.configs")
configs.setup({
2023-11-14 19:20:29 +01:00
ensure_installed = { "c", "rust", "lua", "vim", "vimdoc", "javascript", "html", "astro" },
2023-11-14 01:38:00 +01:00
sync_install = false,
highlight = { enable = true },
indent = { enable = true },
})
end
}
}
require("lazy").setup(plugins)
vim.opt.smarttab = true
vim.opt.expandtab = true
vim.opt.shiftwidth = 2