diff options
author | Andreas Schneider <asn@cryptomilk.org> | 2021-08-27 11:37:41 +0200 |
---|---|---|
committer | Andreas Schneider <asn@cryptomilk.org> | 2021-08-27 13:40:28 +0200 |
commit | 216adea94b3b2f182fc14710d235b04a39b12a74 (patch) | |
tree | 6875121cf680ac53bbd33c50edb79597362c0935 | |
parent | bc29b0244cd854bc6608579d0c3c354c28f07685 (diff) | |
download | dotfiles-216adea94b3b2f182fc14710d235b04a39b12a74.tar.gz dotfiles-216adea94b3b2f182fc14710d235b04a39b12a74.tar.xz dotfiles-216adea94b3b2f182fc14710d235b04a39b12a74.zip |
nvim:plugins: Use neogen instead of DoxygenToolkit
-rw-r--r-- | nvim/.config/nvim/lua/plugins.lua | 15 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/plugins/neogen.lua | 7 | ||||
-rw-r--r-- | nvim/.config/nvim/lua/plugins/nvim-treesitter.lua | 19 |
3 files changed, 35 insertions, 6 deletions
diff --git a/nvim/.config/nvim/lua/plugins.lua b/nvim/.config/nvim/lua/plugins.lua index a988dc4..49fbbba 100644 --- a/nvim/.config/nvim/lua/plugins.lua +++ b/nvim/.config/nvim/lua/plugins.lua @@ -86,6 +86,15 @@ function Packer:load_packer() after = 'nvim-treesitter', } use { + 'nvim-treesitter/playground', + after = 'nvim-treesitter', + } + use { + 'danymat/neogen', + config = 'require("plugins.neogen")', + after = 'nvim-treesitter', + } + use { 'lukas-reineke/indent-blankline.nvim', config = 'require("plugins.indent-blankline")', cmd = { 'IndentBlanklineToggle', 'IndentBlanklineRefresh' }, @@ -132,12 +141,6 @@ function Packer:load_packer() wants = { 'LuaSnip' }, } - use { - 'vim-scripts/DoxygenToolkit.vim', - cmd = { 'Dox', 'DoxUndoc' }, - opt = true, - } - --------------------------------------------- -- LSP --------------------------------------------- diff --git a/nvim/.config/nvim/lua/plugins/neogen.lua b/nvim/.config/nvim/lua/plugins/neogen.lua new file mode 100644 index 0000000..3d7ed19 --- /dev/null +++ b/nvim/.config/nvim/lua/plugins/neogen.lua @@ -0,0 +1,7 @@ +require('neogen').setup({ + enabled = true, + input_after_comment = true, +}) + +opts = { noremap = true, silent = true } +vim.api.nvim_set_keymap("n", "<Leader>nf", ":lua require('neogen').generate()<CR>", opts) diff --git a/nvim/.config/nvim/lua/plugins/nvim-treesitter.lua b/nvim/.config/nvim/lua/plugins/nvim-treesitter.lua index 3fcebd9..f1f1353 100644 --- a/nvim/.config/nvim/lua/plugins/nvim-treesitter.lua +++ b/nvim/.config/nvim/lua/plugins/nvim-treesitter.lua @@ -14,4 +14,23 @@ require('nvim-treesitter.configs').setup { textobjects = { enable = true, }, + + playground = { + enable = true, + disable = {}, + updatetime = 25, -- Debounced time for highlighting nodes in the playground from source code + persist_queries = false, -- Whether the query persists across vim sessions + keybindings = { + toggle_query_editor = 'o', + toggle_hl_groups = 'i', + toggle_injected_languages = 't', + toggle_anonymous_nodes = 'a', + toggle_language_display = 'I', + focus_language = 'f', + unfocus_language = 'F', + update = 'R', + goto_node = '<cr>', + show_help = '?', + }, + } } |