Giter VIP home page Giter VIP logo

dotfiles's Introduction

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.

dotfiles's People

Contributors

lukas-reineke 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  avatar  avatar

dotfiles's Issues

LSP formatting and prettier

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!

Buffer number is nil

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

Prettier resets changes with efm

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?

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.