Giter VIP home page Giter VIP logo

vapournvim's Introduction

VapourNvim Image

Introduction

The goal of this project is to simply get work done quickly.

This project is built to be:

  • Functional. The core of an ideal IDE is functionality. If there is anything you want to add, please consider contributing
  • Minimal. VapourNvim gives you what you need. Not too much, not too less.
  • Fast. VapourNvim loads as smooth as butter with an optimum amount of plugins and lazy loading.
  • Easy to Configure. If there's anything extra that you want to add or something you'd like to tweak, VapourNvim has an awesome configuration system built in.

Features

  • Easy to install and use
  • Written in an efficient programming language
  • Extensible package management system
  • Very elegant and clean look
  • Beautiful syntax highlighting with treesitter
  • Language support and Code Autocompletion
  • Great support for version control
  • Terminal integration
  • Efficient file navigation
  • Autoformatting
  • Awesome user configuration system

Requirements

Installation

Make sure you have curl and bash installed before you run this script.

curl -s https://raw.githubusercontent.com/VapourNvim/VapourNvim/main/install.sh | bash -s

Manual Installation

git clone https://github.com/VapourNvim/VapourNvim ~/.config/nvim
nvim +PackerSync

After Installation

You almost certainly want to add some plugins of your own. You can do it by making your own config file Please read the wiki for Keybindings, Language Servers, Plugins and Screenshots. After making VapourNvim your own, consider posting some screenshots here.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

License

This project is licensed under the GPL-3.0 license.

vapournvim's People

Contributors

ashincoder avatar bhushan avatar coquizen avatar eric-hansen avatar hackorum avatar jrreed-oracle avatar mocdaniel avatar quynguyen avatar sahashirshendu avatar wilsonoh 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

vapournvim's Issues

Bufferline offset not working

image

Tried multiple settings, but I cannot see "File Explorer" on top left when I toggle NvimTree.
Is there any setting that needs to be done?

Opinion: Enabling all plugins by default

Feel free to share your opinion on enabling all the plugins by default on install here. I personally feel that everything should be enabled by default, then the user can disable plugins that they don't need in the config file. What are your thoughts on this? Should everything be enabled by default or not?

How to override plugin config

I would like to override the default width for the nvim-tree plugin within my user-config/init.lua file.

I have been digging in your code to try understand a way to do this, but I cannot see a way to achieve this. So currently I have to execute :NvimTreeResize 40 manually. Maybe I am missing something, but is there a way I can override your defaults?

Lazy loading conflicts

After merging in 7c0a499 I'm experiencing a lot of treesitter errors on start up. After resolving that (by removing the cmd bit from the plugins init file) I get an error about compe.

So I'm making some changes to my PR for #5 but also wanted to open this in case there's more to it.

I don't really understand how lazy loading works for Packer.

Nothing seemed to have happened after installation

I installed as you instructed on the Readme file, but after installation I opened nvim and it is as if nothing happened, also there is a message at the bottom saying 'You need to install treesitter'

Permission Deny while using Terminal in VapourNvim

I could not create any file in vapournvim's terminal
For example
<space> T f to open a floating terminal
then touch temp.txt will get an error touch: temp.txt: Permission denied
So, how to fix it? Thx

Theming suggestion: Catppuccin - mid-tone dark theme

Hey mate! I've been peeking around the repo ever since you first announced the config. It's really awesome, great work!

With that said, I was wondering if you wanted to "team up" in some way. I'm working on this colorscheme called Catppuccin (I'll be releasing it officially between today or tomorrow).

 

I was needing some screenshots to showcase the Nvim port of the theme, but my rice isn't the prettiest one IMHO. After looking at your latest post on r/unixporn I had the idea to ask you if you would like to help me taking promo screenshots, and in exchange Vapour will appear on the README. The theme is really good (very biased, I know)!

Catppuccin is a community-driven mid-tone dark theme that aims to be the middle ground between low and high contrast themes, providing a warm color palette with 16 eye-candy colors that are bright enough to be visible during the day, yet pale enough to be easy on your eyes throughout the night. You can read more about its design philosophy here.

Try it out! Who knows? Maybe you'll end up liking it so much that it will become Vapours official theme?

Errors when pressing tab

Hey! First of id like to say that this is such a cool projct :p big fan ⭐ from me :D

Now to cut the chase im getting some annoying errors when pressing tab, not exactly sure why
image
I did install all the requrements and they are up to date

I use arch, btw

If you need anything else tell me

Error on "nvim +PackerSync"

Error on "nvim +PackerSync"

Hey, I get an error when running "nvim +PackerSync"
ERROR: [packer.nvim] [ERROR 20:58:38 async.lua:20: Error in coroutine: ...ite/pack/packer/start/packer.nvim/lua/packer/compile.lua:598: attempt to index a nil value

2021-08-14-210312_1920x1080_scrot

Enabling treesitter

After install, I found that treesitter was not enabled. I guessed and added:
Vapour.plugins.treesitter.enabled = true
in my init.lua.

  1. I believe it should be enabled by default
  2. Discoverability would be much better if there was autocomplete, so that when I type 'Vapour.plugins.' it should list all possible options
  3. The tree sitter plugin was installed but I still do not have access to the TSInstall command.
    Did I miss any step?

Error in windows

Vim(packadd):E919: Directory not found in 'packpath' : 'pack/*/opt/nvim-lspconfig'

How to override the original keymapping

Thanks for the great great work!

how would I approach changing the original keymapping?, I know I could just write it in the lua file for that setting but is there a better approach especially if I want to stay up to date with other updates of the repo later on. And what if I want to restore the original keymapping. let's say I don't want jk how

Mouse not working on bufferline

I added following code to bufferline init.lua file. But the mouse would not work.

 local bufferline = Vapour.utils.plugins.require('bufferline')
 bufferline.setup {options =
 {
 offsets = {{filetype = "NvimTree", text = "File Explorer", highlight = "Directory", text_align = "center"}},
  right_mouse_command = "bdelete! %d", -- can be a string | function, see "Mouse actions"
  left_mouse_command = "buffer %d",    -- can be a string | function, see "Mouse actions"
  middle_mouse_command = nil,          -- can be a string | function, see "Mouse actions"
 }}


ZenMode not working

Hey agein

Vim is saying that zenmode is not an editor command:
image

I checked docker but it is in fact installed? Something I'm messing up? Using the lastest version atm

docker install VapourNvim

Error detected while processing /root/.config/nvim/init.lua:
E5113: Error while calling lua chunk: /root/.config/nvim/lua/language-servers/init.lua:17: module 'lspconfig' not found:
no field package.preload['lspconfig']
no file './lspconfig.lua'
no file '/usr/share/luajit-2.0.5/lspconfig.lua'
no file '/usr/local/share/lua/5.1/lspconfig.lua'
no file '/usr/local/share/lua/5.1/lspconfig/init.lua'
no file '/usr/share/lua/5.1/lspconfig.lua'
no file '/usr/share/lua/5.1/lspconfig/init.lua'
no file './lspconfig.so'
no file '/usr/local/lib/lua/5.1/lspconfig.so'
no file '/usr/lib/lua/5.1/lspconfig.so'
no file '/usr/local/lib/lua/5.1/loadall.so'
Error in packer_compiled: /root/.config/nvim/lua/toggleterm-config/init.lua:1: module 'toggleterm' not found:^@^Ino field package.prelo
ad['toggleterm']^@^Ino file './toggleterm.lua'^@^Ino file '/usr/share/luajit-2.0.5/toggleterm.lua'^@^Ino file '/usr/local/share/lua/5.1
/toggleterm.lua'^@^Ino file '/usr/local/share/lua/5.1/toggleterm/init.lua'^@^Ino file '/usr/share/lua/5.1/toggleterm.lua'^@^Ino file '/
usr/share/lua/5.1/toggleterm/init.lua'^@^Ino file '/root/.cache/nvim/packer_hererocks/2.0.5/share/lua/5.1/toggleterm.lua'^@^Ino file '/
root/.cache/nvim/packer_hererocks/2.0.5/share/lua/5.1/toggleterm/init.lua'^@^Ino file '/root/.cache/nvim/packer_hererocks/2.0.5/lib/lua
rocks/rocks-5.1/toggleterm.lua'^@^Ino file '/root/.cache/nvim/packer_hererocks/2.0.5/lib/luarocks/rocks-5.1/toggleterm/init.lua'^@^Ino
file './toggleterm.so'^@^Ino file '/usr/local/lib/lua/5.1/toggleterm.so'^@^Ino file '/usr/lib/lua/5.1/toggleterm.so'^@^Ino file '/usr/l
ocal/lib/lua/5.1/loadall.so'^@^Ino file '/root/.cache/nvim/packer_hererocks/2.0.5/lib/lua/5.1/toggleterm.so'
Please check your config for correctness
Press ENTER or type command to continue

Bug: onedark color scheme

I have made the pull request to the latest version, when changing the color scheme of init.lua with 'onedark' the following appears:

image

image

I have tested all the schemes but this is the only one I have problems with.

image

image

Docs?

I haven’t seen any docs about using.

Does this just configure Neovim so after installation we just have to launch Neovim?

thanks very much

Code action not working

Where is LSP saga related key bindings ?

I don't see them in keybindings/init.lua

vapour1

Although :Lspsaga code_action works, but ca doesn't work

vapour2

clean install - null_ls failure

Clean install, no custom config, first run it downloads a bunch of packages (PackerSync), now when I run neovim i get this error every time on launch:

Rosé Pine – https://github.com/rose-pine/neovim
   vim.g.rose_pine_<option> moved to lua setup:
      require('rose-pine').setup({ ... })
   vim.g.rose_pine_disable_italics renamed to disable_italics
Unable to load null-ls
Error in packer_compiled: ...rs/tadhg.obrien/.config/nvim/lua/null-ls-config/init.l
ua:3: attempt to index local 'null_ls' (a nil value)
Please check your config for correctness
Press ENTER or type command to continue

freshly cloned repo causes lua errors in most recent nvim

I have nvim compiled from git HEAD (version NVIM v0.5.0-dev+1425-g7da86f55a)

When I remove everything regarding my old config and clone the repo to ~/.config/nvim and then start nvim +PackerSync I get an error:

Error detected while processing /home/bronsen/.config/nvim/init.lua:
line    1:
E5113: Error while calling lua chunk: ...onsen/.local/neovim/share/nvim/runtime/lua/vim/_meta.lua:21: attempt to index local 'i
nfo' (a nil value)
Press ENTER or type command to continue

/home/bronsen/.local/neovim/share/nvim/runtime is my $VIMRUNTIME

Color scheme partially stuck as rose-pine

Tested on multiple color schemes by adding to vapour/user-config/init.lua
Vapour.settings.colorscheme = 'not-rose-pine'

And alternatively by changing the settings in vapour/init.lua to
colorscheme = 'not-rose-pine'
lualine-colorscheme = 'not-rose-pine'

Screenshots below are with gruvbox selected, where the inactive buffer indicator and bottom lualine bar have improper theming.
OS is Arch Linux w/ Gnome Terminal.

Screenshot from 2022-02-07 12-15-57
Screenshot from 2022-02-07 12-25-03

Lazy loading

Hello shall I add some lazy loading settings for much faster startup time.

Running `nvim .` or `nvim File_Name` causes error and crashes

I'm using Fish, running nvim . to open a directory throws this error with Neovim quitting right after:

Error executing luv callback:
...ck/packer/start/plenary.nvim/lua/plenary/async/async.lua:14: The coroutine failed with this message: vim.lua:63: cannot open /home/vale/.config/nv
im/lua/plenary/async/util.lua: No such file or directory
Press ENTER or type command to continuefish: Job 1, 'nvim main.rs' terminated by signal SIGABRT (Abort)

Also trying to open a file using nvim File_Name throws this error with Neovim quitting right after:

fish: Job 1, 'nvim main.rs' terminated by signal SIGABRT (Abort)

If I just run nvim and find my file using Telescope, fine opens without errors and experience no crashes.

Failed to install uga-rosa/cmp-dictionary

image

after
lua/vapour/plugins/init.lua
use {'uga-rosa/cmp-dictionary', after = "nvim-cmp", disable = not is_enabled('cmp')}

before
use {'uga-rosa/cmp-dictionary', disable = not is_enabled('cmp')}

error on evert start

whenever i start nvim i see this

No C compiler found! "gcc-11" are not executable.                                                                                       
No C compiler found! "gcc-11" are not executable.                                                                                       
No C compiler found! "gcc-11" are not executable.                                                                                       
[cmp-dictionary] No such file: /usr/share/dict/words                                                                                    
Press ENTER or type command to continue       

how to get rid of it

Neoterm - How to switch windows/tabs?

Is it possible to switch to different window or open new tab when neoterm is opened? Leader key seems to be disabled when neoterm is focused, even if terminal supports vi mode. Shortcuts like (Ctrl+K or Ctrl+J) doesn't seem to work too. Mouse works in terms of switching panes, but when I am trying to open new tab from the working tree, neoterm wants to pick a window, after typing any number or letter nothing really happens. Any idea?

I discover that terminal can be minimalize by hitting ctr+\ and it doesn't kill the terminal (all process are still running in the background, but it's only a workaround)
image

Toggleterm

Can I just toggle terminal with "Space + t" like we do with file explorer with "Space + e" ?

Would you be open to making this configurable?

I briefly checked out LunarVim, and enjoyed how it is configurable in the plugins and such, but I prefer the minimalistic approach more that VapourNvim has.

If there's open-ness to making the set up configurable (i.e.: enable only certain LSP clients, the leader key, etc...) I'd be happy to help move it towards that way.

Adding VHDL/Verilog Language Server

Thanks for the awesome configuration
I am a hardware engineer and I use too much of the VHDL and Verilog languages. Unfortunately, both are not supported by NeoVim built-in lsp. I find this language server HDL Checker : https://github.com/suoto/hdl_checker
It provides a Lua configuration for nvim-lspconfig, but I didn't arrive to set up this config.
Could you please check if it works and provide me with some explanation of how to do it?
Thanks.

Error detected when opening Config

I have just updated to the latest version of VapourNvim, updated all the packages, etc.

When I open NeoVim and select Config in the Dashboard I get the following error:

Error detected while processing FileType Autocommands for "*":
E5108: Error executing lua ...im/0.6.1/share/nvim/runtime/lua/vim/treesitter/query.lua:161: query: invalid field at position 18
stack traceback:
        [C]: in function '_ts_parse_query'
        ...im/0.6.1/share/nvim/runtime/lua/vim/treesitter/query.lua:161: in function 'get_query'
        ...1/share/nvim/runtime/lua/vim/treesitter/languagetree.lua:37: in function 'new'
        ...r/neovim/0.6.1/share/nvim/runtime/lua/vim/treesitter.lua:45: in function '_create_parser'
        ...r/neovim/0.6.1/share/nvim/runtime/lua/vim/treesitter.lua:93: in function 'get_parser'
        ...er/opt/nvim-treesitter/lua/nvim-treesitter/highlight.lua:107: in function 'attach'
        ...cker/opt/nvim-treesitter/lua/nvim-treesitter/configs.lua:458: in function 'attach_module'
        ...cker/opt/nvim-treesitter/lua/nvim-treesitter/configs.lua:481: in function 'reattach_module'
        [string ":lua"]:1: in main chunk
Press ENTER or type command to continue

I press enter and the config file shows up just fine.

I cannot seem to trigger the error any other way, am I missing something or is this a bug?

Feature request: Please provide a way to set paste toggle

I am connecting to different machines with SSH. And I need to copy code from one SSH session to another. In that case I need to toggle paste, turn off my tagbar, close NvimTree if its opened. And I want to restore this back once my work is done.

I have written following code to do this, but its not reliable. Sometimes it doesn't disable Indent Blank Line, doesn't work well with NvimTree.

-- Map F5 key to copy and paste in the terminal and set no paste mode.

  -- Elements of array
  -- [0] : if paste toggle was enabled
  -- [1] : if tagbar was open
  -- [2] : if line numbers were enabled
  -- [3] : if NvimTree was opened
  _setpaste = {false, false, false}

  function setpastetoggle()

    if _setpaste[0] then
      _setpaste[0] = false

      vim.api.nvim_command(':IndentBlanklineEnable')
      vim.wo.number = _setpaste[2]
      if _setpaste[1]==1 then
        vim.api.nvim_command(':TagbarOpen')
      end
      if _setpaste[3]==1 then
        vim.cmd("NvimTreeOpen")
      end

    else

      -- Store the state
      _setpaste[0] = true
      _setpaste[1] = vim.fn['tagbar#IsOpen']()
      _setpaste[2] = vim.wo.number
      _setpaste[3] = require'nvim-tree.view'.win_open()

      vim.api.nvim_command(':IndentBlanklineDisable')
      vim.fn['tagbar#CloseWindow']()
      vim.wo.number = false
      vim.cmd("NvimTreeClose")
    end

  end

  --map("n", "<F5>", ":lua setpastetoggle()<cr>", {noremap = true})
  vim.api.nvim_set_keymap('n', '<F5>', ':lua setpastetoggle()<cr>', {noremap = true, silent = true})

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.