Giter Club home page Giter Club logo

nvim-legacy's Introduction

Introduction

This is my Neovim config heavily inspired by LunarVim. In fact, some files and code chunks are taken directly from that project.

This config is a work in progress. Certain things may not make sense, or may be redundant as I am still learning Lua and the file-tree structure of the ~/.config/nvim/ directory.

Load speed

This configuration should load fast depsite the high(ish) number of plugins. Packer.nvim has been used to optimise load order and to lazy-load a large number of plugins. I must note that much of the load order has been inspired by the NvChad project, particularly with regards to nvim-cmp and its associated extensions. The plugin impatient.nvim improves startup time greatly, and is highly recommended.

Neat tricks

I find it useful to be able to jump back and forth between the file tree with the same keymap <leader>-. I bind this keymap to the command :NvimTreeFocus (for focusing the tree when outside the tree buffer) and then add the following into require("nvim-tree").setup({}) (alongside all my other configuation):

require("nvim-tree").setup({
	(...)
	view = {
		mappings = {
			list = {
				{ key = "<leader>-", cb = ":wincmd p<cr>", mode = "n" },
			},
		},
	},
})

The command to be executed is :wincmd p<cr> which basically just takes you back to the previous buffer.

nvim-legacy's People

Contributors

jack-dunham avatar

Watchers

 avatar

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.