|
||
---|---|---|
lua | ||
.gitignore | ||
.stylua.toml | ||
LICENSE.md | ||
README.md | ||
init.lua |
README.md
PDE based on kickstart.nvim
This repo is my (current) PDE and is subject to periodic changes. To start your own PDE from a base configuration, head over to TJ's kickstart.nvim
You can, of course, feel free to use my setup as is, or fork this repo to adapt from here.
- Before starting, backup your previous configuration (if any exists)
mv ~/.config/nvim ~/.config/nvim.backup
Archive Installation
- On the home/landing page for the project find the blue "<> CODE" button click it and select Local > Download ZIP.
- Extract the archive to:
~/.config/nvim
(Linux)~/.config/nvim
(MacOS)%userprofile%\AppData\Local\nvim\
(Windows) - Ensure your extraction method did not extract with a parent folder. For example in ~/.config/nvim you should have init.lua not another folder called kickstart.nvim.
Git Clone Installation
-
From a terminal cd/dir to:
~/.config/nvim
(Linux)~/.config/nvim
(MacOS)%userprofile%\AppData\Local\nvim\
(Windows) -
run:
git clone https://github.com/nvim-lua/kickstart.nvim.git ~/.config/nvim
OR:gh repo clone nvim-lua/kickstart.nvim
-
Run Neovim (from terminal or shortcut) and allow lazy.nvim to download files and set up the basics.
-
Once the setup is complete, restart Neovim.
-
You're ready to go!
Additional system requirements:
- Make sure to review the readmes of the plugins if you are experiencing errors. In particular:
- See Windows Installation if you have trouble with
telescope-fzf-native
Configuration And Extension
- Inside of your copy, feel free to modify any file you like! It's your copy!
- For adding plugins, there are 3 primary options:
- Add new configuration in
lua/custom/plugins/*
files, which will be auto sourced usinglazy.nvim
(uncomment the line importing thecustom/plugins
directory in theinit.lua
file to enable this) - Modify
init.lua
with additional plugins. - Include the
lua/kickstart/plugins/*
files in your configuration.
- Add new configuration in
You can also merge updates/changes from the repo back into your fork, to keep up-to-date with any changes for the default configuration.
Example: Adding an autopairs plugin
In the file: lua/custom/plugins/autopairs.lua
, add:
-- File: lua/custom/plugins/autopairs.lua
return {
"windwp/nvim-autopairs",
-- Optional dependency
dependencies = { 'hrsh7th/nvim-cmp' },
config = function()
require("nvim-autopairs").setup {}
-- If you want to automatically add `(` after selecting a function or method
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
local cmp = require('cmp')
cmp.event:on(
'confirm_done',
cmp_autopairs.on_confirm_done()
)
end,
}
This will automatically install windwp/nvim-autopairs and enable it on startup. For more information, see documentation for lazy.nvim.
Example: Adding a file tree plugin
In the file: lua/custom/plugins/filetree.lua
, add:
-- Unless you are still migrating, remove the deprecated commands from v1.x
vim.cmd([[ let g:neo_tree_remove_legacy_commands = 1 ]])
return {
"nvim-neo-tree/neo-tree.nvim",
version = "*",
dependencies = {
"nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim",
},
config = function ()
require('neo-tree').setup {}
end,
}
This will install the tree plugin and add the command :Neotree
for you. You can explore the documentation at neo-tree.nvim for more information.
Windows Installation
Installation may require installing build tools, and updating the run command for telescope-fzf-native
See telescope-fzf-native
documentation for more details
This requires:
- Install CMake, and the Microsoft C++ Build Tools on Windows
{'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' }