mirror of
https://github.com/pnx/dotfiles
synced 2026-06-16 03:14:55 +02:00
new nvim config
This commit is contained in:
parent
4b730d3924
commit
7388c9bfd3
78 changed files with 1291 additions and 43 deletions
|
|
@ -1,2 +1,27 @@
|
|||
require("config")
|
||||
require("plugins")
|
||||
local setup = require('setup')
|
||||
|
||||
-- config
|
||||
require("config.options")
|
||||
require("config.filetypes")
|
||||
setup.keymaps('config.keymaps')
|
||||
require('config.autocmd')
|
||||
|
||||
-- plugins
|
||||
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('plugins', {
|
||||
dev = {
|
||||
path = "~/code/nvim_plugins",
|
||||
}
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue