My personal dotfiles.
Don't clone and run this as is, but feel free to take a look and steal parts/ideas.
Open an issue if you have any questions, happy to help.
My personal dotfiles. do not eat
My personal dotfiles.
Don't clone and run this as is, but feel free to take a look and steal parts/ideas.
Open an issue if you have any questions, happy to help.
Hi Lukas, great approach to formatting, works really well, thanks a lot!
I have one tiny problem with prettier though. You do, and me too, hardcode configuration for it that is then passed to efm. How would you add functionality to read .prettierrc
should there be one in git root and use that instead of parameters passed from neovim's configuration?
Thanks!
Hey Lukas, I noticed that on the latest neovim update the bufnr in the handlers returns nil making this bufnr == vim.api.nvim_get_current_buf()
false. Have you encountered this issue or am I missing something here? - Thanks
vim.lsp.handlers["textDocument/formatting"] = function(err, _, result, _, bufnr)
if err ~= nil or result == nil then return end
if not vim.api.nvim_buf_get_option(bufnr, "modified") then
local view = vim.fn.winsaveview()
vim.lsp.util.apply_text_edits(result, bufnr)
vim.fn.winrestview(view)
if bufnr == vim.api.nvim_get_current_buf() then
vim.cmd [[noautocmd :update]]
vim.cmd [[GitGutter]]
end
end
end
Hello,
I found your dotfiles while setting up neovim with efm.
You use a BufWritePost autocmd, while I use a BufWritePre autocmd. I do this because otherwise I would have to save twice for the changes to be comitted and because the neovim lsp docs recommend it.
When I use your prettier settings, when a changed Markdown file is saved, the changes get discarded and only then formatted.
Do you have any pointer how to fix it?
Recently I noticed that format.nvim is deprecated and your post on reddit.
So I start to configure format with efm-langserver.
But I find nothing indicates it can provide async format.
I tried configuring efm to do format and lint, but its effect is not very well.
I don't know whether my config is wrong or not:
ayamir/nvimdots@b5a0b31
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.