commit 527d18442218d8855f1d236bf496d69f7a294d56 Author: Jannik Donker Date: Sat Apr 6 18:31:40 2024 +0200 initial commit diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..8d26c18 --- /dev/null +++ b/init.lua @@ -0,0 +1,17 @@ +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("vim-options") +require("lazy").setup("plugins") + + diff --git a/lazy-lock.json b/lazy-lock.json new file mode 100644 index 0000000..7760d5d --- /dev/null +++ b/lazy-lock.json @@ -0,0 +1,11 @@ +{ + "catppuccin": { "branch": "main", "commit": "aebe43db9cb26e1c70fc5b2fd4158169c405e720" }, + "lazy.nvim": { "branch": "main", "commit": "31ddbea7c10b6920c9077b66c97951ca8682d5c8" }, + "lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" }, + "neo-tree.nvim": { "branch": "v3.x", "commit": "16d1b194376bf1fc2acd89ccb3c29ba8315bfcea" }, + "nui.nvim": { "branch": "main", "commit": "cbd2668414331c10039278f558630ed19b93e69b" }, + "nvim-treesitter": { "branch": "master", "commit": "a2d6678bb21052013d0dd7cb35dffbac13846c98" }, + "nvim-web-devicons": { "branch": "master", "commit": "e2e3475c7bffbafbda19df2be6ffd04f6d1a3e16" }, + "plenary.nvim": { "branch": "master", "commit": "8aad4396840be7fc42896e3011751b7609ca4119" }, + "telescope.nvim": { "branch": "master", "commit": "6312868392331c9c0f22725041f1ec2bef57c751" } +} \ No newline at end of file diff --git a/lua/plugins/catppuccin.lua b/lua/plugins/catppuccin.lua new file mode 100644 index 0000000..7635fc6 --- /dev/null +++ b/lua/plugins/catppuccin.lua @@ -0,0 +1,10 @@ +return { + "catppuccin/nvim", + name = "catppuccin", + lazy = false, + priority = 1000, + config = function() + vim.cmd.colorscheme "catppuccin-mocha" + end +} + diff --git a/lua/plugins/lualine.lua b/lua/plugins/lualine.lua new file mode 100644 index 0000000..8d04395 --- /dev/null +++ b/lua/plugins/lualine.lua @@ -0,0 +1,11 @@ +return { + "nvim-lualine/lualine.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + config = function () + require("lualine").setup({ + options = { + theme = "dracula" + } + }) + end +} diff --git a/lua/plugins/neotree.lua b/lua/plugins/neotree.lua new file mode 100644 index 0000000..4fc7e1a --- /dev/null +++ b/lua/plugins/neotree.lua @@ -0,0 +1,9 @@ +return { + {"nvim-neo-tree/neo-tree.nvim", branch = "v3.x", + dependencies = { + "nvim-lua/plenary.nvim", + "nvim-tree/nvim-web-devicons", + "MunifTanjim/nui.nvim", + } + } +} diff --git a/lua/plugins/telescope.lua b/lua/plugins/telescope.lua new file mode 100644 index 0000000..fc8a650 --- /dev/null +++ b/lua/plugins/telescope.lua @@ -0,0 +1,12 @@ +return { + "nvim-telescope/telescope.nvim", + tag = "0.1.6", + dependencies = { + "vim-lua/plenary.nvim" + }, + config = function() + local builtin = require("telescope.builtin") + vim.keymap.set("n", "", builtin.find_files, {}) + vim.keymap.set("n", "", builtin.live_grep, {}) + end +} diff --git a/lua/plugins/treesitter.lua b/lua/plugins/treesitter.lua new file mode 100644 index 0000000..882fe31 --- /dev/null +++ b/lua/plugins/treesitter.lua @@ -0,0 +1,14 @@ +return { + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + config = function() + local configs = require("nvim-treesitter.configs") + vim.keymap.set("n", "", ":Neotree toggle") + + configs.setup({ + ensure_installed = {"lua", "javascript", "html", "css", "rust", "typescript", "python"}, + highlight = { enable = true }, + indent = { enable = true }, + }) + end +} diff --git a/lua/vim-options.lua b/lua/vim-options.lua new file mode 100644 index 0000000..c8b96b8 --- /dev/null +++ b/lua/vim-options.lua @@ -0,0 +1,6 @@ +vim.cmd("set tabstop=4") +vim.cmd("set shiftwidth=4") +vim.wo.relativenumber = true +vim.g.mapleader = "," + +