Comments (5)
I have no problem if I disable "neovim/nvim-lspconfig"
plugin.
Is it misconfigured?
edit: no problem only if I disable lspconfig
from vim-config.
I finally almost managed to fix the problem.
The problem is with the windo e
command.
Someone familiar with Vim will most likely find a better solution but here is the hacky trick I used.
-- Reload if files were supplied in command-line arguments
if vim.fn.argc() > 0
and vim.fn.has('vim_starting')
and not vim.o.modified
and vim.fn.line('w$') > 4
then
-- triggers the FileType autocmd that starts the servers
vim.cmd('windo e')
end
My shebangs are 3 lines long so and vim.fn.line('w$') > 4
make vim reloading all buffer windows from disk only for file with more than 3 lines.
Adding |write
to the shebang command is an altenative to auto save file before reloading from disk.
from vim-config.
The issue seems to be an error from null-ls plugin which calls shellcheck binary and fails somewhere.
You can disable shellcheck or customize its settings in lua/plugins/null-ls.lua
, look for builtins.diagnostics.shellcheck
.
from vim-config.
Thanks for your answer.
Could another method than vim.cmd('windo e')
be used to start the server?
Maybe vim.cmd('w')
?
This way of launching the server causes strange behavior.
For example, I noticed that the autocommand SwapExists here does not work because of this and raise the following error
[dein] Error occurred while executing hook: nvim-lspconfig
[dein] Vim(lua):E5108: Error executing lua /home/jlaunay/.config/nvim/lua/plugins/lspconfig.lua:192: Vim(edit):E325: A
TTENTION
[dein] stack traceback:
[dein] ^I[C]: in function 'cmd'
[dein] ^I/home/jlaunay/.config/nvim/lua/plugins/lspconfig.lua:192: in function 'setup'
[dein] ^I[string ":lua"]:1: in main chunk
For the moment I'm using vim.cmd('w')
but I don't know if it's a suitable solution
In the end, I can't find a solution that works.
from vim-config.
Pushed a whole new rewrite of vim-config, please test your issue and re-open if it still happens.
from vim-config.
Related Issues (20)
- comittia plugin configuration changes potentially broken HOT 2
- Interview partners for research about communication in GitHub projects wanted
- Vimwiki and Zk workflow HOT 1
- Correct Persisted Setup HOT 1
- Problem parsing yaml files when used with VimR HOT 1
- Migrate to lazy.nvim HOT 2
- neo-tree dockerfile icon show HOT 2
- choose window not work HOT 4
- The plugins NOT installed which under `extras` folders HOT 2
- Allow lazy setup to be configurable HOT 2
- Lack of user plugins leads to error on startup HOT 1
- when open the golang code, why notice this icon
- Error loading lightbulb setup HOT 1
- keymap <Return>/za notice "no fold found" HOT 3
- Archiving null-ls HOT 1
- How do I handle large files? HOT 1
- Error after loading any LSP HOT 4
- First time installation not working
- LazyExtras not persisted after install HOT 5
- Lots and lots of errors where LazyVim is not defined HOT 1
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 vim-config.