Coder Social home page Coder Social logo

dotfiles's Introduction

I'm a French Student and Developer

  • ๐Ÿ’ผ 4th year IT student at EPITECH, Bordeaux, France (2020 - 2025)
  • ๐ŸŽ“ I am studying in Laval university this year (2023 - 2024)
  • ๐Ÿง‘โ€๐ŸŽ“ Autonomous & Self-taught
  • โš•๏ธ Working on my study project Medali
  • ๐Ÿ“š I'm currently learning Rust and Lua

Languages & Tools

C C++ C# Haskell Python Bash Arduino JavaScript TypeScript Node.js PHP
Docker kubernetes Jenkins Ansible
MySQL MongoDB PostgreSQL
Git GitHub GitLab
Linux Apple Neovim Vim

๐Ÿ“š What I am learning at the moment

Lua Rust Swift

dotfiles's People

Contributors

rekwass avatar

Watchers

 avatar

dotfiles's Issues

Use <Cmd>

Replace map("n", "<leader>T", ":enew<CR>") with map("n", "<leader>T", "<Cmd>enew<CR>")

Fix Black format on save

When opening a .py file i get the following error :

packer.nvim: Error running config for black: [string "..."]:0: invalid augroup: black_on_save

Remove Noice Nvim

The plugin is too heavy and does too many things that I do not like and that I can not control.

Use vim.cmd

Replace map("n", "<leader>ac", ":CodeActionMenu<CR>") to map("n", "<leader>ac", vim.cmd.CodeActionMenu)

Snippets <TAB>

When selecting a snippet and leaving it. Pressing will bring me back to the next tabstop from the snippet.

Replace all single quotes to double quotes

example :
map('n', '<leader>ff', ':lua require(\'telescope.builtin\').find_files()<CR>')
becomes
map("n", "<leader>ff", ":lua require(\"telescope.builtin\").find_files()<CR>")

Fix scroll up

When scrolling up, nothing is updating.

And when you stop scrolling up, the cursor goes up 1 or 2 times.

0>ku<80>ku
^ When scrolling up

Quickfix

When typing <leader>qf It should take the first option available from the code action list.

Use Mason formatters

use black and clang-format installed from Mason.nvim instead of manually installed ones

Configure INDIVIDUALLY LSPs

To configure properly each language server you MUST initiate them separately.

Example with the lua language server:

require'lspconfig'.sumneko_lua.setup {
    -- ... other configs
    settings = {
        Lua = {
            diagnostics = {
                globals = { 'vim' }
            }
        }
    }
}

Add a Linter

When their are no LSP available, use a Linter instead.

Convert vim autocmd to lua

example :

vim.cmd([[
    augroup black_on_save
      autocmd!
      autocmd FileType python autocmd BufWritePre <buffer> Black
augroup end
]])
vim.api.nvim_create_autocmd({ "FileType", "BufWritePre" }, {
    group = "black_on_save",
    pattern = "*.py",
    callback = function()
    command = "Black",
    end,
})

Fix Tab out of snippets

When entering a snippet, it will leave tabstops.

Unfortunately, theses tabstops will not go away unless I tab onto them.

Autocmds

Each time I save a file the formatting command adds itself again and again. Causing each :w to be slower.

To fix it, add autocmd! in the associated augroup to remove the already existing command.

Find a way to do it in Lua.

Noice.nvim

Config noice in order to never leave nvim when running programs.

  • Add time to execution notifications, disable on save notifications (or most of them)

  • Do not hide : in the cmdline

  • When packer asks if you want to remove certain folders, noice's cmdline goes over this message and so you cannot read which folders are going to get deleted

Config here

Fix comments

Currently, I am using block comments on each line instead of using a single line comment.

C++ :

/* comment */

but it should be

// comment

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.