GithubHelp home page GithubHelp logo

kristijanhusak / neovim-config Goto Github PK

View Code? Open in Web Editor NEW
250.0 9.0 39.0 18.4 MB

Neovim configuration

Shell 49.89% Python 1.91% Lua 41.18% Makefile 0.02% Emacs Lisp 7.00%
vim neovim tmux zsh viml dotfiles dotfile

neovim-config's Introduction

Neovim and terminal configuration

Neovim configuration is completely written in lua, thus it requires Neovim 0.5+.

  • Super old tmux setup: tmux branch.

This is my Neovim editor setup, with zsh and i3 configurations. Feel free to fork it and submit a pull request if you found any bug.

Warning: Install script removes all previous configuration (zshrc, oh-my-zsh, nvim, i3)

Installation

$ git clone https://github.com/kristijanhusak/neovim-config.git ~/neovim-config
$ cd ~/neovim-config
$ chmod +x ./install.sh
$ ./install.sh
$ nvim

Plugins

see plugins.lua

Font used:

License

This project is licensed under MIT License (see LICENSE file for details). But each plugin has its own license, so check each one to see what you can do.

neovim-config's People

Contributors

kristijanhusak avatar thefourtheye 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  avatar  avatar

neovim-config's Issues

Colors in vim

Hi Kristijan. You nvim config is really awesome and I used parts of it a lot. But I have one question. It's not clear for me how something like this is working

hi StatusLine guifg=#ebdbb2 guibg=#504945 gui=NONE

I assume you are using iterm + nvim where this gui hex colors are not working at all. Am I wrong?

suggestion: use relative path for statusline path

Trying to yank a few lines for the search count (I hate it being a separate wasted line), I got to your config.
I do also like your lsp progress and gitsigns solution, though I think I need to install something for this to work.
it just works (for me).

add_cmd('Frel', function() vim.fn.setreg('+', plenary.path:new(vim.api.nvim_buf_get_name(0)):make_relative()) end, {}) -- copy relative path
plenary.path handles gracefully uris, so oil:// etc path just work and dont need extra handling..

if you prefer checking against cwd (relative path resolving does this automatically and falls back to absolute one if not within cwd) you could use uv.cwd() like you use it elsewhere.
If you use alot harpoon, you might find a few handy things in my dotfiles.

This also makes several of your vim.fs.dirname superfluous. See also :h vim.fs

call <sid>defx_open with find_current_file winwidth parameter seems not work

I found your config about defx.vim, it helps a lot! Thanks!! But I get a problem with defx_open and find_current_file.

nnoremap <silent><Leader>n :call <sid>defx_open()<CR>

nnoremap <silent><Leader>hf :call <sid>defx_open({ 'find_current_file': v:true })<CR>

If I first press n then press n again to hide defx, then press hf, everything is great.

image

As above defx found the file tt.cpp, and I have resize the winwidth it works.

But if I press hf directly after run Vim, got lots of trailing spaces, and winwidth is not as what I set.

image

It hides the buffer of file tt.cpp.

The RED blocks is highlight of trailing spaces.

Oddly enough; this function call results in diagnostics from _other_ buffers... super strange.

function lsp.show_diagnostics()

On CursorHold virtual text being shown for the given line is for other diagnostics buffers instead of the current buffer. Using a nearly identical autocmd as yours; trying it both in the client on_attach, and just on my lsp module load.

Wondering if you've ever run across this/that.

Thanks for all of your contributions to nvim!

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.