commit e493606f9b6a7992450d9bdf0d4ac07a7eb463d8 Author: rocketdebris Date: Thu Jan 25 10:40:01 2024 -0500 Initial commit, includes basic settings, treesitter for python, c++ and a few other languages, and lspconfig for python. diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..e033bc6 --- /dev/null +++ b/.gitignore @@ -0,0 +1 @@ +lazy-lock.json diff --git a/init.lua b/init.lua new file mode 100644 index 0000000..b97da8f --- /dev/null +++ b/init.lua @@ -0,0 +1,28 @@ +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", + lazypath, + }) +end +vim.opt.rtp:prepend(lazypath) + +require("lazy").setup("plugins") + +-- My user settings: +vim.opt.number = true +vim.opt.relativenumber = true +vim.opt.tabstop = 4 +vim.opt.foldmethod = "indent" +vim.opt.foldenable = false +vim.cmd([[colorscheme everforest]]) + + + +local lspconfig = require('lspconfig') +lspconfig.pylsp.setup{} + diff --git a/lua/plugins/everforest-nvim.lua b/lua/plugins/everforest-nvim.lua new file mode 100644 index 0000000..e1cb743 --- /dev/null +++ b/lua/plugins/everforest-nvim.lua @@ -0,0 +1,6 @@ +return {{ + "neanias/everforest-nvim", + version = false, + lazy = false, + priority = 1000, +}} diff --git a/lua/plugins/nvim-lspconfig.lua b/lua/plugins/nvim-lspconfig.lua new file mode 100644 index 0000000..67e6058 --- /dev/null +++ b/lua/plugins/nvim-lspconfig.lua @@ -0,0 +1,3 @@ +return {{ + "neovim/nvim-lspconfig" +}} diff --git a/lua/plugins/nvim-treesitter.lua b/lua/plugins/nvim-treesitter.lua new file mode 100644 index 0000000..492db3e --- /dev/null +++ b/lua/plugins/nvim-treesitter.lua @@ -0,0 +1,14 @@ +return {{ + "nvim-treesitter/nvim-treesitter", + build = ":TSUpdate", + config = function () + local configs = require("nvim-treesitter.configs") + + configs.setup({ + ensure_installed = { "c", "cpp", "lua", "vim", "vimdoc", "python", "html" }, + sync_install = false, + highlight = { enable = true }, + indent = { enable = true }, + }) + end + }}