diff --git a/.README.md b/.README.md index a2a92b9..bcf603c 100644 --- a/.README.md +++ b/.README.md @@ -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" ``` diff --git a/.config/nvim/init.vim b/.config/nvim/init.vim index 6c665f5..0752202 100644 --- a/.config/nvim/init.vim +++ b/.config/nvim/init.vim @@ -65,7 +65,7 @@ local on_attach = function(client, bufnr) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'gd', 'lua vim.lsp.buf.definition()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'lrn', 'lua vim.lsp.buf.rename()', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'lrr', 'lua vim.lsp.buf.references()', opts) - vim.api.nvim_buf_set_keymap(bufnr, 'n', 'lca', 'lua vim.lsp.buf.code_action()', opts) + vim.api.nvim_buf_set_keymap(bufnr, 'n', 'lca', 'lua vim.lsp.buf.code_action({apply = true})', opts) vim.api.nvim_buf_set_keymap(bufnr, 'n', 'lqf', 'lua vim.lsp.buf.code_action({apply = true})', opts) vim.api.nvim_buf_set_keymap(bufnr, 'i', '', 'lua vim.lsp.buf.signature_help()', opts) end