A collaborative learning journey building the best editor ever config
- add support for plugins management using folke/lazy.nvim: ๐ค A modern plugin manager for Neovim
- add support for code highlighting using nvim-treesitter/nvim-treesitter: Nvim Treesitter configurations and abstraction layer
- add support for files and buffers management using nvim-telescope/telescope.nvim: Find, Filter, Preview, Pick. All lua, all the time.
- add basic lsp support for lua and typescript using neovim/nvim-lspconfig: Quickstart configs for Nvim LSP, nvim-telescope/telescope.nvim: Find, Filter, Preview, Pick. All lua, all the time., williamboman/mason-lspconfig.nvim: Extension to mason.nvim that makes it easier to use lspconfig with mason.nvim.
- add initial keymaps for basic use
- add initial options
File/Folder | Description |
---|---|
config/lazy.lua |
Plugin manager config |
config/options.lua |
Define global and editor options |
config/keymaps |
Define global keymaps |
config/autocmds |
Define global auto-commands |
plugins/ |
Contains all plugins configs by file |
Command | Description |
---|---|
:Lazy |
Open plugin manager |
:Telescope <picker> |
Open Telescope picker |
- Create a new plugin file under
user.plugins
folder - Define the plugin config in this file
return {
{
"kylechui/nvim-surround",
version = "*", -- Use for stability; omit to use `main` branch for the latest features
event = "VeryLazy",
config = function()
require("nvim-surround").setup({
-- Configuration here, or leave empty to use defaults
})
end
}
}
nvim-telescope/telescope.nvim: Find, Filter, Preview, Pick. All lua, all the time.
lua/user/plugins/telescope.lua
Check nvim-telescope/telescope.nvim Wiki for more config options
You can use Telescope directally using this command :Telescope <picker>
.
The default mode within telescope is the insert mode. If you switch to normal mode you can access the help inside the current picare by typing ?
.
Some useful commands within the picker
Command | Description |
---|---|
Ctrl + V |
Open file in a vertical split |
Ctrl + H |
Open file in a horizontal split |
Ctrl + T |
Open file in a new tab |
Ctrl + U |
Scroll up in the preview mode |
Ctrl + D |
Scroll down in the preview mode |
Tab |
Toggle selection (multiselection) |
Keymap | Description |
---|---|
<leade>fk |
Find keymaps |
<leade>ff , <leader><space> |
Find files (cwd) |
<leade>fF |
Find files (cwd) (preview) |
<leade>fb |
Find buffers |
<leade>fB |
Find buffers (preview) |
<leade>fr |
Find recents files |
<leade>fR |
Find recents files (preview) |
<leade>st |
Search text in (cwd) |
<leade>sT |
Search text in (cwd) (preview) |
<leade>ss |
Search text in (cwd) under cursor |
<leade>sS |
Search text in (cwd) under cursor (preview) |