]> localhost Git - nvim.git/commitdiff
simple cfg
authorJansen <[email protected]>
Wed, 25 Sep 2024 22:31:53 +0000 (18:31 -0400)
committerJansen <[email protected]>
Wed, 25 Sep 2024 22:31:53 +0000 (18:31 -0400)
init.lua [new file with mode: 0644]
lazy-lock.json [new file with mode: 0644]

diff --git a/init.lua b/init.lua
new file mode 100644 (file)
index 0000000..282a0c2
--- /dev/null
+++ b/init.lua
@@ -0,0 +1,75 @@
+-- General =====================================================================
+vim.opt.syntax      = 'on'
+vim.opt.colorcolumn = '81'
+vim.opt.clipboard   = 'unnamedplus'
+
+vim.opt.tabstop        = 2
+vim.opt.softtabstop    = 2
+vim.opt.shiftwidth     = 2
+vim.opt.expandtab      = true
+vim.opt.number         = true
+vim.opt.relativenumber = true
+
+vim.opt.foldmethod = "manual"
+vim.opt.foldenable = true
+
+vim.opt.cursorline = true
+
+-- Lazy NVIM ===================================================================
+local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
+if not (vim.uv or 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({
+  { 
+    "nvim-treesitter/nvim-treesitter",
+    config = function()
+      require("nvim-treesitter.configs").setup({
+        ensure_installed = {
+          "asm",
+          "bash",
+          "c",
+          "comment",
+          "cpp",
+          "css",
+          "csv",
+          "gitignore",
+          "glsl",
+          "go",
+          "html",
+          "ini",
+          "java",
+          "javascript",
+          "json",
+          "lua",
+          "make",
+          "python",
+          "rust",
+          "tmux",
+          "toml",
+          "tsx",
+          "typescript",
+          "yaml",
+          "zig",
+        },
+        highlight = {
+          enable = true,
+          disable = { "help", "vimdoc" },
+        },
+        indent = {
+          enable = true,
+          disable = { "help", "vimdoc" },
+        },
+      })
+    end
+  },
+})
diff --git a/lazy-lock.json b/lazy-lock.json
new file mode 100644 (file)
index 0000000..66d501e
--- /dev/null
@@ -0,0 +1,4 @@
+{
+  "lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" },
+  "nvim-treesitter": { "branch": "master", "commit": "0c8a582e474e248f2a4406188e0c653f92a064cf" }
+}