This commit is contained in:
Ale 2023-11-14 01:38:00 +01:00
parent cd3ca919f0
commit 6157f0e92b

34
nvim/init.lua Normal file
View file

@ -0,0 +1,34 @@
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 = {
{
"nvim-treesitter/nvim-treesitter",
build = ":TSUpdate",
config = function ()
local configs = require("nvim-treesitter.configs")
configs.setup({
ensure_installed = { "c", "rust", "lua", "vim", "vimdoc", "javascript", "html" },
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