Coder Social home page Coder Social logo

neovim-config's Introduction

neovim-config

A collaborative learning journey building the best editor ever config

Version 0.1

Brainstorming

Initial config folder

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

Main commands

Command Description
:Lazy Open plugin manager
:Telescope <picker> Open Telescope picker

Plugins

Adding new plugins example

  1. Create a new plugin file under user.plugins folder
  2. Define the plugin config in this file

Example lua/user/plugins/surround.lua

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
    }
}

Telescope

nvim-telescope/telescope.nvim: Find, Filter, Preview, Pick. All lua, all the time.

Config

lua/user/plugins/telescope.lua

Check nvim-telescope/telescope.nvim Wiki for more config options

Working with telescope

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)

Keymaps

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.