Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/danrusei/dotfiles
configs
https://github.com/danrusei/dotfiles
Last synced: 26 days ago
JSON representation
configs
- Host: GitHub
- URL: https://github.com/danrusei/dotfiles
- Owner: danrusei
- Created: 2021-02-24T05:57:06.000Z (almost 4 years ago)
- Default Branch: main
- Last Pushed: 2024-01-31T14:05:11.000Z (11 months ago)
- Last Synced: 2024-10-14T04:12:32.001Z (2 months ago)
- Language: Vim Script
- Size: 55.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## This repository is hosting my Vim configuration with some basic bindings
### [HERE](https://github.com/danrusei/dotfiles/blob/main/Vim_Commands.md) - The list of usual VIM commands including my custom bindings
## Configure Vim for Vscode
* ** CTRL-Shift P** and select **Preferences: Open User Settings (JSON)**
* Copy the content of [settings.json](https://github.com/danrusei/dotfiles/blob/main/vim/settings.json) file into your settings.json
* Use the vim bindings from [Vim for VsCode Bindings](https://github.com/danrusei/dotfiles/blob/main/Vim_Commands.md)## Configure Vim on Linux
1. **Install vim-plug (https://github.com/junegunn/vim-plug)**
```
curl -fLo ~/.vim/autoload/plug.vim --create-dirs \
https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim```
2. Copy the [.vimrc file](https://github.com/danrusei/dotfiles/blob/main/vim/.vimrc) into your home directory
3. The following plugins are installed (added already to the config):
* Plug 'scrooloose/nerdtree' - https://vimawesome.com/plugin/nerdtree-red
* Plug 'tpope/vim-fugitive' - https://vimawesome.com/plugin/fugitive-vim
* Plug 'machakann/vim-highlightedyank' - https://vimawesome.com/plugin/vim-highlightedyank
* Plug 'tpope/vim-commentary' - https://vimawesome.com/plugin/commentary-vim
* Plug 'junegunn/fzf.vim' - https://vimawesome.com/plugin/fzf
* Plug 'neoclide/coc.nvim', {'branch': 'release'} - https://vimawesome.com/plugin/coc-nvim //used mainly to install language servers for GO & RustIn order to install them apply:
```
:PlugInstall
```
4. **Install Rust language server**```
:CocInstall coc-rust-analyzer (npm or yarn may be required)
```**Install Go language server**
Some resources:
* https://github.com/golang/tools/blob/master/gopls/README.md
* https://github.com/josa42/coc-go```
:CocInstall coc-go
```Configure Go LSP:
```
:CocConfig
```
```
"languageserver": {
"go": {
"command": "gopls",
"rootPatterns": ["go.work", "go.mod", ".vim/", ".git/", ".hg/"],
"filetypes": ["go"],
"initializationOptions": {
"usePlaceholders": true
}
}
}
```---
***
___