Comments (7)
I figured out it's not related to goto_next
, it's caused by opening floating window.
It has been discussed already, and there's a plugin implementing it using Neovim's laststatus
feature, but it's limited to Neovim.
from lightline.vim.
Are you using the latest version of lightline? I recently accepted a Neovim related patch so make sure to update. If it is the latest, please create a precise steps to reproduce the issue. Just lua vim.diagnostic.goto_next()
warns No more valid diagnostics to move to
.
from lightline.vim.
Thanks for checking out,
I'm using latest commit
commit f11645cc6d37871244f2ea0ae972d3f6af9c8f73 (HEAD -> master, origin/master, origin/HEAD)
Merge: b1e91b4 3d10b50
Author: itchyny <[email protected]>
Date: Sun Sep 3 19:09:07 2023 +0900
Merge pull request #659 from 4513ECHO/fix/neovim-floatwin
fix: Make not to skip floatwin if it is focusable
I have checked, opening floating window actually does not inactivates lightline, I used below command to check
:call nvim_open_win(0, v:false, { "relative": "editor", "width": 40, "height": 20, "col": 0, "row": 20})
I think goto_next
does some more work than just opening window.
To reproduce, we need working LSP environment which includes,
- Neovim
- Neovim LSP config
- Dev environment and an language server
- I used Typescript
tsserver
for the example, sonpm
and Typescript compiler is required.# assume npm is already installed and $PATH is configured npm install --global typescript npm install --global typescript-language-server
- Link to
tsserver
configuration doc fornvim-lspconfig
- Assume now you have working LSP config, make a directory and init Typescript project
npm init -y npx tsc --init
- Type some erroneous code, below code should suffice
function foo() { throw new Error("oh no"); console.log("bar") }
- Invoke
goto_next
I attached my minimal Typescript project for case if you have trouble creating project.
from lightline.vim.
@4513ECHO Would you help us fixing this?
from lightline.vim.
Please try this workaround. Maybe this is bug of Neovim itself...
from lightline.vim.
Ah, okay, thanks. Is there any bug report to Neovim?
from lightline.vim.
@4513ECHO Yup I tried the patch and it works well now.
It looks like it's default behavior, (i.e. it's not a bug) so I think it won't be changed.
@itchyny We may conclude this issue invalid and close, but new users would face this issue later on so documenting it would be helpful. If you mind cluttered README file with troubleshooting methods, Github Wiki might come in handy.
from lightline.vim.
Related Issues (20)
- [Feature request] Formal arguments in component_function HOT 5
- Calling lua function from `g:lightline` config HOT 9
- Powerline transparent colorscheme
- bug : Undefined variable: g:lightline HOT 2
- Update tabline color on mode change HOT 3
- Lineinfo column doesn't match cursor column position HOT 2
- incorrect branch name on Gsplit HOT 4
- `component_function` does not accept vim9 function HOT 1
- Custom colorscheme mode HOT 5
- `laststatus=2` doesn't seem to be working HOT 1
- extra spaces from lightline-problem-12 HOT 1
- All Highlighted/Selected Character Count? HOT 6
- middle active/inactive items missing from statusline HOT 7
- Using `vim.lsp.buf.hover()` breaks lightline. HOT 8
- How to use Catppuccin theme on lightline?
- Returning a statusline item from a component function HOT 2
- theme support for grubbox HOT 2
- How do I ignore certain filetypes? HOT 2
- Changing the color of modified file symbol HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lightline.vim.