vapournvim / vapournvim Goto Github PK
View Code? Open in Web Editor NEWA NeoVim config for THE ULTIMATE vim IDE-like experience.
License: GNU General Public License v3.0
A NeoVim config for THE ULTIMATE vim IDE-like experience.
License: GNU General Public License v3.0
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})
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
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.
As above, thanks
Hi,
As I would like to use rust-tools, which interacts with lsp_installer as per:
https://github.com/williamboman/nvim-lsp-installer/wiki/Rust
Any ideas of how to do this in customising without overwriting language-servers.init.lua, inserting the code above into it?
Appreciate any help
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
Do you accept another vim colorscheme for vapur vim?
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?
Can I just toggle terminal with "Space + t" like we do with file explorer with "Space + e" ?
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.
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.
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
When I try to edit C / CPP files, NVIM formats the entire file.
Can we please have an option to disable this auto-formatting when not desired?
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
Where to put user defined plugins ? In which particular file.
I would like to use
LuaSnip
Rust-Tools and
Flutter-Tools
Thanks for your great work 👍
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
How can I enable a custom language server? Like clangd or jdtls or anything else.
please is possible add vim-fugitve.
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)
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.
After install, I found that treesitter was not enabled. I guessed and added:
Vapour.plugins.treesitter.enabled = true
in my init.lua.
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.
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
Hello
i installed telescope-file-browser.nvim which is only working after i start telescope.
Same is with twilight plugin, it works only after starting zen mode.
How can i make it work
Thanks
How do you configure the null_ls plugin?
Vim(packadd):E919: Directory not found in 'packpath' : 'pack/*/opt/nvim-lspconfig'
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'
Hello shall I add some lazy loading settings for much faster startup time.
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?
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
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"
}}
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?
You can post screenshots of your own VapourNvim here. And maybe also a link to your configuration!
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.