Initial experiments with Lua config

This commit is contained in:
2024-03-02 11:29:43 +00:00
commit 20954190a8
8 changed files with 208 additions and 0 deletions

31
init.lua Normal file
View File

@@ -0,0 +1,31 @@
require('settings')
require('mappings')
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)
require('lazy').setup({
import = 'plugins',
change_detection = {
enabled = false,
},
})
-- {
-- { 'nvim-telescope/telescope.nvim', dependencies = { 'nvim-lua/plenary.nvim' } },
-- { 'neovim/nvim-lspconfig' },
-- })
-- require('telescope').setup()
-- require('lspconfig').clangd.setup()
-- require('lspconfig').cmake.setup()
-- require('lspconfig').lua_ls.setup()