From 9676d13187108f38e5dc5635540c0dddc4e4957f Mon Sep 17 00:00:00 2001 From: Pim Kunis Date: Mon, 30 Jan 2023 10:14:56 +0100 Subject: [PATCH] add vim surround plugin fix asdf loading --- README.md | 6 +++++- roles/bash/files/bashrc | 5 +++-- roles/neovim/files/lua/plugins.lua | 12 +++++++++--- roles/neovim/files/plugin/surround.lua | 1 + 4 files changed, 18 insertions(+), 6 deletions(-) create mode 100644 roles/neovim/files/plugin/surround.lua diff --git a/README.md b/README.md index c35fdc5..b5a718c 100644 --- a/README.md +++ b/README.md @@ -15,6 +15,9 @@ My current setup is [Regolith OS](https://regolith-desktop.com/) which is basica - some kind of tag setup with: bootstrap, update, etc. - i3 app shortcuts - Configuration for desktop at uni. It should be really similar, except syncthing should have a new keypair. Also some applications are not necessary, e.g. nicotine+ and virtualbox. +- default neovim editor +- dropdown autocomplete +- I think fzf is not cloned? Would like Ansible Vault to check in keypair for syncthing. However, then I would need a password to unlock the vault. @@ -28,7 +31,8 @@ As an intermediate solution, I can just put the password in keepass... #### Neovim - More cool plugins :) -- That fast movement plugin that shows jump locations, not sure what it was called. +- gcc comment +- indenting ## Long-term TODO diff --git a/roles/bash/files/bashrc b/roles/bash/files/bashrc index 24e1052..a370be6 100644 --- a/roles/bash/files/bashrc +++ b/roles/bash/files/bashrc @@ -101,5 +101,6 @@ alias vim='nvim' [ -f ~/.fzf.bash ] && source ~/.fzf.bash -# asdf command -PATH=$PATH:~/.asdf/bin +# asdf +. "$HOME/.asdf/asdf.sh" +. "$HOME/.asdf/completions/asdf.bash" diff --git a/roles/neovim/files/lua/plugins.lua b/roles/neovim/files/lua/plugins.lua index ed37ffc..14a8842 100644 --- a/roles/neovim/files/lua/plugins.lua +++ b/roles/neovim/files/lua/plugins.lua @@ -17,9 +17,6 @@ return require('packer').startup(function() -- Git line decorations use 'lewis6991/gitsigns.nvim' - -- Git commands from vim - use 'tpope/vim-fugitive' - -- File browser use { "nvim-neo-tree/neo-tree.nvim", @@ -42,4 +39,13 @@ return require('packer').startup(function() -- Fast jumping use 'ggandor/leap.nvim' + + -- Surround objects + use({ + "kylechui/nvim-surround", + tag = "*", + requires = { + "tpope/vim-repeat" + } + }) end) diff --git a/roles/neovim/files/plugin/surround.lua b/roles/neovim/files/plugin/surround.lua new file mode 100644 index 0000000..8a06dad --- /dev/null +++ b/roles/neovim/files/plugin/surround.lua @@ -0,0 +1 @@ +require("nvim-surround").setup()