Giter Site home page Giter Site logo

nvim's Introduction

Nvim

NOTE: This ~README~ is outdated, the project structure has been fully changed. The profile requires Neovim nightly now.

My personal Neovim configuration, which keeps the structure simple and straightforward by logically distributing the configuration into various directories. Aims to be highly customizable and have no hacks.

https://github.com/ofseed/nvim/assets/61115159/dec86ed6-b708-4736-a485-b51755864aed.png

Table of Contents

Introduction

This configuration doesn’t break any of Neovim’s default keymaps, except for s, the source-level equivalent of cl, s is used as the easymotion-prefix(In fact the functionality of easymotion is provided by a plugin called hop.nvim).

This configuration contains more than 100 plugins, but the configuration of each plugin is placed in a separate file, and these files are classified into different modules according to the function of the plugin and placed in different folders.

In addition, all configuration options and keymaps for each plugin are listed in their respective files, making it easy to adjust individual options without having to look up the manual.

The configuration structure is as shown in the figure below.

                  │                             ┌──────────────────┐
nvim/                 nvim/lua                  │ Core Module      │
                  │                             │ ┌──────────────┐ │
                                                │ │lspconfig.lua │ │
                  │    ┌───────────┐            │ └──────────────┘ │
                       │keymaps.lua│     ┌─────►│                  │
                  │    └───────────┘     │      │ ┌──────────────┐ │
                      Keymap for lazy    │      │ │treesitter.lua│ │
                  │   loading plugins    │      │ └──────────────┘ │
                             ▲           │      │                  │
                  │          │           │      │  ...other files  │
                             │           │      └──────────────────┘
   ┌──────────┐   │    ┌─────┴────┐      │
   │ init.lua ├───────►│ init.lua │      │      ┌──────────────────┐
   └──────────┘   │    └──────────┘      │      │ Interface Module │
  Neovim common        Neovim extra      │      │ ┌──────────────┐ │
  configuration   │    configuration     │      │ │bufferline.lua│ │
                             │           │      │ └──────────────┘ │
                  │          │           │      │                  │
                             ▼           │      │ ┌──────────────┐ │
                  │    ┌───────────┐     │      │ │ lualine.lua  │ │
                       │plugins.lua├─────┼─────►│ └──────────────┘ │
                  │    └───────────┘     │      │                  │
                     Plugin management,  │      │  ...other files  │
                  │ calling each module  │      └──────────────────┘
                                         │
                  │                      │      ┌──────────────────┐
                                         └─────►│ ...other modules │
                  │                             └──────────────────┘

Directory Structure

├── lua
│   ├── core # Core plugins, often depended on by other plugins
│   │   ├── lspconfig.lua
│   │   ├── treesitter.lua
│   │   └── ...
│   ├── debug # Debug and run
│   │   ├── dap.lua
│   │   ├── dap-ui.lua
│   │   └── ...
│   ├── edit # Text edting
│   │   ├── cmp.lua
│   │   ├── copilot.lua
│   │   └── ...
│   ├── efficiency # Efficiency Improvement
│   │   ├── session-manager.lua
│   │   ├── telescope.lua
│   │   └── ...
│   ├── interface # Interface Extension
│   │   ├── bufferline.lua
│   │   ├── lualine.lua
│   │   └── ...
│   ├── language # Language Specific
│   │   ├── jdtls.lua
│   │   └── tex.lua
│   ├── tool # Tool Integration
│   │   ├── gitsigns.lua
│   │   ├── tree.lua
│   │   └── ...
│   ├── plugins.lua # Plugin management
│   ├── keymaps.lua # Keymap for lazy loading plugins
│   └── init.lua # Neovim extra configuration
├── .gitignore
├── stylua.toml
├── LICENSE
├── README.org
└── init.lua # Neovim common configuration

nvim's People

Contributors

ofseed avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

nvim's Issues

bufferline does not work as expected

It is found that only one bufferline tab will show up, so there must be something wrong with the bufferline config.
AFAIK if bufferline is enabled, nvim can show multiple tab windows and we can use shortcuts to navigate between
theses opened tab windows.

The default Catppuccin theme looks different between MacOS Terminal and iTerm2

In MacOS iTerm2 the Catppuccin mocha theme looks right as below
image
However it looks strange in MacOS Terminal as below
image
It looks like there is a strange blue background color is set to Catppuccin which makes it
really bad to work with. The only difference is the terminal software.
I cannot figure it out why this is going to happen, like to get help with it because i really like
to use the MacOS default terminal and want this nvim config can work it.

Could you share your kitty.conf file?

It seems that you use Kitty as your terminal. Could you share the kitty.conf? As I know, only Kitty works perfect with ident-blankline.nvim (with modify_font). Thanks very much.

The project.nvim plugin does not work as expected

When I try to launch the projects using <leader>fp I can see the telescope projects floating window but no project is listed there.

So I think there must be something wrong with the project plugin, hope it can be fixed since it is quite a handy plugin that can help improve the efficiency.

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.