Skip to content

miferco97/.dotfiles

Repository files navigation

My .dotfiles

For setting up the configuration of :

Install dependencies:

# install NeoVim
sudo add-apt-repository ppa:neovim-ppa/unstable
sudo apt update
sudo apt install neovim

# install Neovim plugins dependencies
sudo apt-get install xclip ripgrep
pip3 install pynvim 

Setup steps:

  1. Clone the repository into ~/.dotfiles
$ git clone https://github.com/miferco97/.dotfiles.git $HOME/.dotfiles 

Run the following commands:

$ cd ~/.dotfiles
$ bash core_setup.bash # Download and install Neovim, Tmux, Zsh and i3

Reload a new terminal
$ cd ~/.dotfiles
$ zsh plugin_setup.zsh # Install nvim plugins

[INFO] My zsh theme is powerlevel10k, if you want to use the recommended fonts follow this instructions: https://github.com/romkatv/powerlevel10k#fonts

Coc languages Servers (https://github.com/neoclide/coc.nvim)

For installing basic languages run the desired command into nvim:

C++ language server

:CocInstall coc-clangd
:CocCommand clangd.install

Python language server

:CocInstall coc-pyright

For setup vimspector plugin run:

$ cd $HOME/.local/share/nvim/plugged/vimspector
$ ./install_gadget.py --all

After that you must add a .vimspector.json in the root folder of your project with your desired configuration. An example .vimspector.json file for cpp debuggin can be:

{
  "configurations" : {
    "Launch":{
      "adapter": "vscode-cpptools",
      "configuration":{
        "request": "launch",
        "program": "<YOUR FILE TO RUN: for example ./build/test",
        "cwd": "${workspaceFolder}",
        "externalConsole": true,
        "MIMode": "gdb"
      }
    }
  }
}

[WARN] This debugger does not compile your code, you must compile it before debugging. For compiling C++ projects I use neovim-cmake plugin.

For more info of how to create this file for the different languages go to the plugin webpage.

Common errors:

If c++ autocompletion fails with std libs run: See this post

$ apt install libstdc++-12-dev

About

My own dotfiles for ubuntu

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published