dotfiles/nvim/.config/nvim/lua/plugins.lua

229 lines
8 KiB
Lua
Raw Normal View History

nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
local install_path = vim.fn.stdpath("data") .. "/pack/packer/start/packer.nvim"
if vim.fn.empty(vim.fn.glob(install_path)) > 0 then
vim.cmd("!git clone https://github.com/wbthomason/packer.nvim " ..
install_path)
end
vim.api.nvim_exec([[
augroup Packer
autocmd!
autocmd BufWritePost plugins.lua PackerCompile
augroup END
]], false)
local use = require("packer").use
require("packer").startup(function()
-- packer manages itself
use "wbthomason/packer.nvim"
-- vim plugs
-- essential
use {
'numToStr/Navigator.nvim',
config = function() require('Navigator').setup() end
} -- allow seamless navigation between vim buffers and tmux splits
use 'jeffkreeftmeijer/vim-numbertoggle' -- toggles numbers to absolute for all buffers but the current which is relative
use 'RRethy/vim-illuminate' -- highlight other occurences of the word under cursor
use 'ojroques/vim-oscyank' -- yank from *anywhere* (even ssh session) to clipboard, using :OSCYank
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
use 'ggandor/lightspeed.nvim' -- jump between letters with improved fFtT quicksearch, mimics sneak
-- files
use 'vifm/vifm.vim' -- integrate file manager
use {
'lewis6991/gitsigns.nvim', -- show vcs changes on left-hand gutter
requires = {'nvim-lua/plenary.nvim'},
tag = 'release',
config = function()
require('gitsigns').setup {
keymaps = {['n ]c'] = nil, ['n [c'] = nil}
}
end,
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
event = "BufRead"
}
use {
'norcalli/nvim-colorizer.lua', -- color hex, named colors in the correct preview scheme
config = function() require('colorizer').setup() end,
event = "BufRead"
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
}
use {
'mhartington/formatter.nvim', -- auto formatting on save
config = function() require('plug._format') end,
event = "BufRead"
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
}
-- editing
use {'machakann/vim-sandwich', event = "BufRead"} -- surround things with other things using sa/sd/sr
use {
'monaqa/dial.nvim', -- extend the ^a / ^x possibilities to dates, hex, alphabets, markdown headers
event = "BufRead"
}
use {
'tommcdo/vim-exchange', -- adds exchange operator with cx. common use: cxiw . on 2 words to switch
event = "BufRead"
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
}
use {
'windwp/nvim-autopairs',
config = function() require('plug._autopair') end,
event = "BufRead"
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
} -- Auto close brackets and ''
use {
'junegunn/vim-easy-align', -- Align tables and other alignable things
event = "BufRead"
}
use {
'tversteeg/registers.nvim', -- Show the contents of regiseters on pasting from '', @, <C-R>
event = "BufRead"
}
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
use { -- highlight where the cursor jumps to
'edluffy/specs.nvim',
config = function() require('specs').setup {} end,
event = "BufRead"
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
}
-- colorschemes
use 'norcalli/nvim-base16.lua'
-- statusline
use {
'nvim-lualine/lualine.nvim',
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
requires = {'kyazdani42/nvim-web-devicons', opt = true},
config = function() require('plug._lualine') end
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
}
-- writing
use {'vim-pandoc/vim-pandoc-syntax', ft = 'pandoc'}
use {'vim-pandoc/vim-pandoc', ft = 'pandoc'}
use {'vim-pandoc/vim-criticmarkup', ft = 'pandoc'} -- highlights for criticmarkup
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
use 'micarmst/vim-spellsync' -- personal dict improvements for git sync
use { -- provide distraction free writing
'Pocco81/TrueZen.nvim',
config = function()
require("true-zen").setup({
integrations = {
gitsigns = true,
lualine = true,
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
tmux = {global = false},
limelight = true
}
})
end
}
use {'junegunn/limelight.vim', event = 'BufRead'} -- provide even distraction free-er writing (lowlight paragraphs)
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
use 'alok/notational-fzf-vim' -- quickly search through the wiki
-- languages
use {'euclidianAce/BetterLua.vim', ft = 'lua'} -- better syntax highlighting for lua
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
-- REPL work
use {
'jpalardy/vim-slime', -- send arbitrary code chunks to REPLs
config = function()
vim.g.slime_target = 'tmux'
vim.g.slime_paste_file = vim.fn.tempname()
vim.g.slime_default_config = {
socket_name = "default",
target_pane = "{last}"
}
vim.g.slime_python_ipython = 1
vim.g.slime_no_mappings = 1
end
}
use {
'hanschen/vim-ipython-cell', -- send code 'cells' to REPL
ft = "python",
config = function()
vim.g.ipython_cell_highlight_cells_ft = {'python'}
vim.g.ipython_cell_insert_tag = "## Cell"
end
}
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
--
-- nvim plugs
use {
'echasnovski/mini.nvim',
branch = 'stable',
config = function() require('plug._mini') end
}
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
use 'Iron-E/nvim-cartographer' -- makes it easier to set mappings through lua
use 'marty-oehme/zettelkasten.nvim' -- simple static markdown linking
use {
"akinsho/nvim-toggleterm.lua", -- simpler, programmable and multiple terminal toggling for nvim
event = "BufWinEnter",
config = function() require('plug._toggleterm') end
}
use {
"folke/which-key.nvim",
config = function() require("which-key").setup {} end
}
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
-- fuzzy matching
use {
"nvim-telescope/telescope.nvim",
requires = {
{"nvim-lua/popup.nvim"}, {"nvim-lua/plenary.nvim"},
{"nvim-telescope/telescope-fzf-native.nvim", run = 'make'}
},
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
config = function() require('plug._telescope') end
}
use {
'protex/better-digraphs.nvim',
requires = {{"nvim-telescope/telescope.nvim"}}
}
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
-- snippeting
use {"hrsh7th/vim-vsnip", event = "InsertEnter"} -- snippet engine
use {"rafamadriz/friendly-snippets", event = "InsertEnter"} -- many snippets
-- treesitter
use {
'nvim-treesitter/nvim-treesitter',
run = ':TSUpdate',
config = function() require('plug._treesitter') end
}
use 'nvim-treesitter/playground' -- interactively view and query the treesitter tree
use 'romgrk/nvim-treesitter-context' -- show current cursor context at top of buffer
use {
'RRethy/nvim-treesitter-textsubjects', -- allows using . and ; to target treesitter branches
config = function()
require'nvim-treesitter.configs'.setup {
textsubjects = {
enable = true,
keymaps = {
['.'] = 'textsubjects-smart',
[';'] = 'textsubjects-container-outer'
}
}
}
end
}
use 'p00f/nvim-ts-rainbow' -- rainbow brackets using treesitter
use 'JoosepAlviste/nvim-ts-context-commentstring' -- improves commenting plugin above by using ts
use {
'lewis6991/spellsitter.nvim', -- uses treesitter to highlight spelling errors
config = function() require('spellsitter').setup() end
}
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
-- lsp
use 'neovim/nvim-lspconfig' -- some commong language server configurations
use 'simrat39/symbols-outline.nvim' -- vista-like outline view for code
use 'ray-x/lsp_signature.nvim'
use {
'ray-x/navigator.lua',
requires = {'ray-x/guihua.lua', run = 'cd lua/fzy && make'}
}
-- and completion
use {
'hrsh7th/nvim-cmp', -- simple completion engine built specifically for nvim and lsp
requires = {
'onsails/lspkind-nvim', 'andersevenrud/cmp-tmux', -- completion source from adjacent tmux panes
'hrsh7th/cmp-nvim-lsp', 'hrsh7th/cmp-buffer', 'hrsh7th/cmp-path',
'hrsh7th/cmp-cmdline', 'hrsh7th/cmp-vsnip',
'kdheepak/cmp-latex-symbols', 'ray-x/cmp-treesitter',
'f3fora/cmp-spell', 'jc-doyle/cmp-pandoc-references',
'cbarrete/completion-vcard'
}
}
require('plug._lsp')
nvim: Switch to lua-based setup nvim: Restructure lua config directory Restructured lua setting files, so that plugin settings are in clearly labelled as such files, and the base files are just there --- the base directory. This should also lay the ground work for modularizing plugins, so that we can enable/disable plugin groups as we need them. ---------- nvim: Remove ale linter and formatter Removed ale from plugins. Linting is being taken care of by lsp and treesitter plugins and formatting by formatter.nvim. Added all filetypes ale took care of to formatting on save. ---------- nvim: Replace wiki.vim with zettelkasten.nvim Removed lerlvag's `wiki.vim` from plugin list. Though I love it and loved using it, by now it clutters up the list and the basic functionality I need it provided by zettelkasten.nvim. (That being linking, following links, and quickly opening a central file). I may still come back to it at some point, but for now I am happy with the new setup. ---------- nvim: Add toggleterm and lazygit integration Added toggleterm plugin, integrating a very quick access to the neovim terminal (`<leader>=` mapping). Additionally, added a command to quickly call up a lazygit floating windows with the same plugin. `<leader>G` will open a git management window in which you can stage, remove, commit, push, pull and more. ---------- nvim: Replace surround, sneak; Add treesitter, dial Replaced vim-sneak with lightspeed lua plugin, which accomplishes similar to the same goal, with a little more flexibility (can also be used to replicate other vim plugins like e.g. easymotion). For now I am using it as a straight replacement, with the same fF/tT functionality stretching over multiple lines, and quick sS 2-letter jumps to any location ahead/back. The highlighting is noticeably more stable and faster. For now it is set to always highlight the next 5 occurences of a letter, wherever they are. Lastly, it does not -- so the lightspeed author -- change the buffer in any way which is what happened with sneak (due to vimscript limitations) and which can and did confuse things like treesitter and the lsp integration. Replaced vim-surround with a lua-equivalent surround.nvim. This one I am less sure about, the lua pluging, while working, still carries some bugs and does not seem as thoroughly tested. It still has problems with surrounding stuff with e.g. `*` and does not deal well with some quotation situations. I will try to keep using it and perhaps find the time to contribute to some of the issues instead of going back at first however, purely since I am a much bigger fan of the plugin existing in luascript. Replaced vim-peekaboo with registers, another switch to a lua plugin, which also functions slightly differently however. I much prefer the lua plugins display of register contents which simply appear as a dropdown, compe-like, and I can either paste with the correct symbol choice as always, or by scrolling through it as if it is an autocomplete choice. Added dial.nvim which slightly extends the functionality of ^a and ^x number in-/decreases. It should barely be noticeable in normal operation but now the combination can be used to change dates, alphabet characters, hex codes and some more. Most prominently, I am using it for date manipulation. Added a couple of treesitter related plugins: treesitter-context shows the context the cursor is currently in if the beginning of this context goes off-screen, e.g. the function beginning or current class being edited. Works for nested contexts. treesitter-textsubjects allows selecting units of codes by going up the tree branches. So, first you select an argument, then the whole argument chain, then the function definition, then the whole function, then the containing class, and so on. It is quite natural, however, I have so far only made it work for visual selection, so not as a motion target. Still, very useful - works with `v.` and can be repeated with `.`. Lastly, ts-context-commentstring improves the correct selection of commenting type for commenting plugins (i.e. my `gcc` mapping), by making use of treesitter where available. Can even do multi-language files like vue, react, or tsx modules with html, css and javascript interweaved. ---------- nvim: Add code formatter Added code formatter in lua, right now supporting python, cpp, javascript, lua, rust. More can very easily be added. I am not sure if this plugin supports the formatting of code within snippets in another file format (lukas-reineke/format.nvim does support this, but seems not-maintained). ---------- nvim: Add tmux, snippet completion Added (for real this time) tmux adjacent buffer completion. Added vsnip completion through compe: Invoke a completion (shown in compe with snippet preview) through <cr> or <space-cr> and then use <tab> and <s-tab> to go back and forth through the completable positions for the respective snippet. Many default snippets included through the community repository of friendly-snippets. ---------- nvim: Improve compe completion, Add outline view Added outline view to neovim, similar to the well-known vista.vim plugin. Can be opened (and closed again) with <leader>o mapping, simply mnemonic for 'outline'. Added unicode symbols (invoked with '\') and tmux adjacent buffers to compe completion sources. ---------- nvim: Add zen writing mode in lua Switched from goyo to TrueZen.nvim in looking for a lua replacement of zen writing modes. The F11 shortcut remains the same, additionally using F10 shortcut to enter a less drastic minimal mode. ---------- nvim: Switch keymaps to lua format Using cartographer to make setting keymaps easy. ---------- nvim: Add tmux Navigator lua replacement ---------- nvim: Add autopairs, zen writing lua plugins Switch goyo and autopairs to make use of lua plugins. Moved most of the plugin setup code from a custom and manually updated array being called from init.lua, to their respective plugin installations in plugins.lua (so, wherever the plugin is installed also contains the call of the configuration code). This should hopefully reduce duplication a little and may prepare for the lua plugin setups to end up in plugins directory of neovim. ---------- nvim: Add lua statusline, base16, async grep Added galaxyline in an initial iteration which is probably overloaded but integrates well with the also moved over to lua base16 colorschemes. For now, it is possible to, at any point, simply call the `:lua B16theme('themename')` command to change the colorscheme of both neovim itself and the galaxyline with it. The statusline, as of now, includes the activated mode (of course), the filename being edited, the edit state (whether changed from last save, or read-only), the current git branch if any, as well as the amount of added, modified, and deleted lines from current git commit. On the right hand side it contains the lsp status (if connected), the amount of errors and warnings in current file, the filetype currently recognized for the file, as well as the usual cursor position in the window. Added some small other things, including an asynchronous fuzzy-backed full-text search through telescope, which should hopefully make full-text searching much more responsive than before; updated the version of indentline to the correct one; and disabled some unused vim built-in plugins.
2021-07-27 08:12:33 +00:00
end)