Browse Source

Remove shell prompts for easier copy-pasting.

master
Fredrik Ekre 2 years ago
parent
commit
d2b8c86cc5
  1. 10
      .README.md
  2. 2
      .config/nvim/init.vim

10
.README.md

@ -6,24 +6,24 @@ Configuration files for syncing between machines. See https://www.atlassian.com/ @@ -6,24 +6,24 @@ Configuration files for syncing between machines. See https://www.atlassian.com/
1. Clone the repo:
```
$ git clone --bare https://github.com/fredrikekre/.dotfiles.git "$HOME/.dotfiles.git"
git clone --bare https://github.com/fredrikekre/.dotfiles.git "$HOME/.dotfiles.git"
```
2. Define a temporary `dotfiles` alias:
```
$ alias dotfiles='git --git-dir="$HOME/.dotfiles.git/" --work-tree="$HOME"'
alias dotfiles='git --git-dir="$HOME/.dotfiles.git/" --work-tree="$HOME"'
```
3. Check out the files:
```
$ dotfiles checkout
dotfiles checkout
```
4. Configure the new local repo to hide untracked files and to use the local gitignore file
```
$ dotfiles config --local status.showUntrackedFiles no
dotfiles config --local status.showUntrackedFiles no
$ dotfiles config --local core.excludesfile "$HOME/.gitignore.dotfiles"
dotfiles config --local core.excludesfile "$HOME/.gitignore.dotfiles"
```

2
.config/nvim/init.vim

@ -65,7 +65,7 @@ local on_attach = function(client, bufnr) @@ -65,7 +65,7 @@ local on_attach = function(client, bufnr)
vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', '<cmd>lua vim.lsp.buf.definition()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>lrn', '<cmd>lua vim.lsp.buf.rename()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>lrr', '<cmd>lua vim.lsp.buf.references()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>lca', '<cmd>lua vim.lsp.buf.code_action()<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>lca', '<cmd>lua vim.lsp.buf.code_action({apply = true})<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'n', '<leader>lqf', '<cmd>lua vim.lsp.buf.code_action({apply = true})<CR>', opts)
vim.api.nvim_buf_set_keymap(bufnr, 'i', '<C-h>', '<cmd>lua vim.lsp.buf.signature_help()<CR>', opts)
end

Loading…
Cancel
Save