Giter Site home page Giter Site logo

neovim-config's Introduction

Short Intro

Screenshot

This is my NeoVim config (for version 0.9.0 and greater).

Features

Here's a short list of features that this config offers (through the use of 3rd party plugins).

  • Autocompletion
  • Highlighting
  • Navigation
    • Find definition/declaration/implementation...
    • Find all references (of variables, methods, classes...)
    • Jump cursor focus forward/backward in time
    • Project tree view (NvimTree)
    • Switch between tabs
  • Searching
    • Search by file name
    • Search by file contents
    • Search through NeoVim's help
  • Refactoring (code actions)
    • Rename (variable, method, class...)
    • Automatically import
    • Simplify code
    • Infer type info
  • Diagnostics
    • Show errors/warnings/hints/info
    • Diagnostic panel
    • Integration with status line
  • Git
    • Highlight edited lines in number column
    • Navigate between hunks (changes)
    • Stage/unstage hunks
    • Preview old code
    • Status line integration
  • Misc
    • Special start page
    • Indent guide lines
    • Motions for surrounding characters (brackets, parentheses...)
    • Easy commenting out code
    • Pretty status line
    • Default colorscheme
    • Enabled mouse integration
    • Keymappings for 10 finger typing on Slovene keyboard

Installation

I will make the whole installation process more friendly in the future, but for now just follow these steps.

  1. Download this repo
git clone [email protected]:optimizacija/neovim-config.git
  1. Put the contents of this repo where NeoVim can find them. On Linux this is most likely $HOME/.config/nvim.
  2. Create a data folder. This is where NeoVim will search for its packages, including Packer.
    • On Linux this is $HOME/.local/share/nvim. Otherwise check the output of :lua print(vim.fn.stdpath('data')).
  3. Open NeoVim and let it install Packer and all the dependencies (ignore the errors).
  4. Open NeoVim again and wait for nvim-treesitter to install all of its dependencies (ignore the errors).

If you're updating an existing config and you're facing some issues, I would recommend that you remove the contents of data folder and retry the installation. (It has helped me in the past)

Icons

Icons and other special characters are used all around the config to give NeoVim a prettier look. However, your terminal will not display these icons correctly unless it uses the correct font.

Install one of the icon fonts listed here. Just follow their instructions for your specific OS. After installation is complete, don't forget to configure your terminal to start using the new font. Each terminal does this differently, so be sure to checkout Arch Wiki if you run into any troubles.

TODOS

Misc:

  • open previously opened project files
  • Lock dependencies

neovim-config's People

Contributors

optimizacija 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  avatar  avatar  avatar  avatar

neovim-config's Issues

Does Not Work on windows

Installation Failed on Windows

OS : Windows 10
NeoVim Version : NVIM v0.5.0 released on Jul 2

I cloned the repo and placed at the path:
C:\Users<User Name>\AppData\Local\nvim

When i ran the command :PackerInstall it gave me an error saying
E492: Not an editor command: PackerInstall

Screenshot 2021-08-19 013308

lost icon

image

what font should I download? It's lost some icon

Optimise this config;

Not gonna say much but it pretty much fucked my laptop. 2.84gb was only my nvim-data. like what the fuck bro??? can't you just install the relevant stuff.

Nvim gives error when run

I get the following error when I try to run neovim:

Error detected while processing /home/a/.config/nvim/init.lua: E5113: Error while calling lua chunk: /home/a/.config/nvim/lua/plugins.lua: 2: attempt to concatenate global 'DATA_PATH' (a nil value) stack traceback: /home/a/.config/nvim/lua/plugins.lua:2: in main chunk [C]: in function 'require' /home/a/.config/nvim/init.lua:1: in main chunk Press ENTER or type command to continue

Keymapping for completion

Hi,

Can You help mi with setting navigation through popup menu with autocompletion? I know that in .vimrc format the command should be:

inoremap <expr> <Tab>   pumvisible() ? "\<C-n>" : "\<Tab>"
inoremap <expr> <S-Tab> pumvisible() ? "\<C-p>" : "\<S-Tab>"

But how can I do it with lua format? Sorry, maybe this is noob question but I'm still learning and coudn't find documentation.

BTW - I love Your config, did some modifications and it works flawlessly on my computer ;)

[nvim-treesitter] [0/74] Downloading...

Hi, @optimizacija

I just use this neovim-config for my neovim, it seems like the nvim-treesitter is something wrong, when I use nvim open a cpp file:

ๅ›พ็‰‡

I've tried manually git clone the nvim-treesitter but it still show same error after reboot of the nvim. How can I do for this?

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.