GithubHelp home page GithubHelp logo

uhooi / dotfiles Goto Github PK

View Code? Open in Web Editor NEW
31.0 31.0 1.0 11.76 MB

My dotfiles

Shell 36.00% Batchfile 0.63% JavaScript 2.37% Python 21.08% Vim Snippet 1.71% Ruby 0.64% Lua 33.33% Vim Script 3.33% TypeScript 0.86% Makefile 0.03%
bash dotfiles macos vim windows

dotfiles's Introduction

Logo

uhooi's github stats Top Langs

trophy

GitHub Twitter My Qiita posts My Qiita contributions My Qiita followers

dotfiles's People

Contributors

uhooi 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

Watchers

 avatar  avatar  avatar

Forkers

garchomp-game

dotfiles's Issues

Show LSPInfo

References

Heirline.nvim

  • https://vim-jp.slack.com/files/U02R8P8LGBD/F058T60CB5G/snippet.lua
    local conditions = require 'heirline.conditions'return {
      condition = conditions.lsp_attached,
      update = { 'LspAttach', 'LspDetach', 'WinEnter' },
      provider = function(_)
        -- ' [lua_ls null-ls(stylua)]'
        return (' [%s]'):format(table.concat(
          vim
            .iter(vim.lsp.get_active_clients { bufnr = 0 })
            :map(function(server)
              if server.name == 'null-ls' then
                -- null-lsの場合は実際に使っているソースを羅列して表示する
                return ('null-ls(%s)'):format(table.concat(
                  vim
                    .iter(require('null-ls.sources').get_available(vim.bo.filetype))
                    :map(function(source)
                      return source.name
                    end)
                    :totable(),
                  ','
                ))
              else
                -- null-ls以外の場合はサーバー名をそのまま表示する
                return server.name
              end
            end)
            :totable(),
          ' '
        ))
      end,
      hl = { fg = 'green', bold = true },
    }
  • https://vim-jp.slack.com/archives/C01LXT3BWBU/p1684725772661889
  • https://github.com/uga-rosa/dotfiles/blob/main/nvim/lua/rc/heirline/lsp.lua
    local conditions = require("heirline.conditions")
    
    return {
      condition = conditions.lsp_attached,
      update = { "LspAttach", "LspDetach" },
      provider = function()
        local names = {}
        for _, server in ipairs(vim.lsp.get_active_clients({ bufnr = 0 })) do
          table.insert(names, server.name)
        end
        return "" .. table.concat(names, ", ")
      end,
      hl = { fg = "green" },
    }

lualine.nvim

  • https://vim-jp.slack.com/archives/C01LXT3BWBU/p1684745184367369
    local lsp_names = {
      function()
        local servers = vim
          .iter(vim.lsp.get_active_clients({ bufnr = 0 }))
          :map(function(server)
            if server.name == 'null-ls' then
              return ('null-ls(%s)'):format(table.concat(
                vim
                  .iter(require('null-ls.sources').get_available(vim.bo.filetype))
                  :map(function(source)
                    return source.name
                  end)
                  :totable(),
                ','
              ))
            else
              return server.name
            end
          end)
          :totable()
    
        return table.concat(servers, ', ')
      end,
    }
    
    lualine_x = {
      -- ...  
      lsp_names,
      -- ...
    },

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.