From 6157f0e92be2e12717d3febf5ab64f9831d42fa5 Mon Sep 17 00:00:00 2001 From: Ale Date: Tue, 14 Nov 2023 01:38:00 +0100 Subject: [PATCH] nvim --- nvim/init.lua | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 nvim/init.lua diff --git a/nvim/init.lua b/nvim/init.lua new file mode 100644 index 0000000..4a9ecce --- /dev/null +++ b/nvim/init.lua @@ -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