Giter Club home page Giter Club logo

dotfiles's People

Contributors

augustomelo avatar

Watchers

 avatar  avatar

dotfiles's Issues

Switch to lazy.nvim

lazy.nvim

I don't have a real reason to do it besides that it seems that packer is becoming abandoned (lot of unmerged PRs and issues)

But some advantages could be:

  • Speed up of nvim startups (currently it takes close to 320 ms), and a lot of plugins and settings could be lazy loaded
  • It seems that it does not need to manually compile the plugins, it does it automatically
  • Disable some vim plugins that I will not be using like:
    • gzip
    • netrwPlugin
    • tarPlugin
    • ...

Some inspirations:

Improve statusline

How to customize it (link)[https://linuxhint.com/customizing-status-bar-tmux/] a (example)[https://github.com/edkolev/tmuxline.vim]

Get the nvim startup screen back

This seems to be related with the option on tmux: set-option -g focus-events on

Warning on nvim checkhealth:

- WARNING `focus-events` is not enabled. |'autoread'| may not work.
  - ADVICE:
    - (tmux 1.9+ only) Set `focus-events` in ~/.tmux.conf:
      set-option -g focus-events on

Set clipboard on tmux

tmux clipboard

Based on the docs the clip board should be on set -s set-clipboard on the main problem that it causes is when scrolling the pane it does not copy all the lines into the clipboard. Since I use kitty this will be convenient

Review wildignore

The current implementation of wildignore is not working properly, since on some cases the .github is not being displayed, the main problem here is because I tried to use the same logic for the wildignore (which I believe use glob patterns ) and lua (which uses lua regex)

Note: some gradle files are being ignored, like build.gradle

nvim 0.9

Some cool features on this release:

  • showcmdloc
  • all

Add grammar checking

On some projects we use vale to do grammar check, so it would be a good idea to integrate it with neovim

Links:

External resources

Note

Maybe this change would allow us to ditch spelunker, on other hand is spelunker really useful? I am not sure, since on some projects that I enter it points to some errors on variables names that they are not actual errors

Also what can be done is use grammar checking form text files (Markdown and Text) and comments on the code.

Move some of the useful scripts to git aliases

Some of my useful commands could be git aliases like:

  • git branch ${branchName}: branches out from master if not branch is specified
    • I still need to create a wrapped function to achieve that behavior example, because the idea here is to have a default for the git switch --create start-point, if [ "$1" = "-c" ] || [ "$1" = "-C" ]; then if [ -z "$3" ]
  • git tidy: remove local branches
  • git commit ${message}: assumes -m and wraps everything with double quotes
  • git pull/push: assumes origin and branch as being the current one, when doing pull it would be nice use the flag `--autostash
  • git pipeline status: grabs the status of the ci pipeline for the last commit and keeps trying until stops
  • git stashall: by default uses the --all
  • git find branch: uses fzf to find a branch and checks it out
  • git log: defaults it with --oneline
    • Achieved by using the format option pretty = %C(auto)%h %as | %s - %aN<%aE>
  • git add: use fzf to add the files it would be great

some other thing can be seen here

Notes

  • You can load the git alias using on .gitconfig the example
  • Also it could be nice if I rearrange my workspace so I can handle multiple users like this
  • Adding all of those scripts maybe we can ditch the neovim plugin that handles the git integration

At first thought, I was going to wrap some of the Git commands in shell functions to add default options. For example, when creating a branch with git switch -c branch and no start-point was provided, I would use the default branch. However, for now, I have decided not to pursue this because, first, it doesn't make sense to have to edit in two places when adding an alias. Also, the shell would need to "know" the alias. Second, I don't have that many aliases.

Add more auto completions to nvim-cmp

There are other plugins that could make my life easier for example:

  • hrsh7th/cmp-buffer: source buff words
  • hrsh7th/cmp-path: source for path
  • hrsh7th/cmp-cmdline: source vim's cmdline
  • uga-rosa/cmp-dictionary: dictionary

Here is a good source (link)[https://github.com/topics/nvim-cmp]

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.