From 6fcaa2c7d5146cbd2d848fa45e2ef734079ea131 Mon Sep 17 00:00:00 2001 From: blob42 Date: Sun, 28 May 2023 12:47:51 +0200 Subject: [PATCH] plugin: argwrap, auto wrap args + disable drop.nvim (screensaver) --- after/plugin/abolish.vim | 2 ++ lua/core/mappings.lua | 2 ++ lua/custom/plugins/configs/navigator.lua | 1 + lua/custom/plugins/init.lua | 24 +++++++++++++++++------- 4 files changed, 22 insertions(+), 7 deletions(-) create mode 100644 after/plugin/abolish.vim diff --git a/after/plugin/abolish.vim b/after/plugin/abolish.vim new file mode 100644 index 0000000..f977eae --- /dev/null +++ b/after/plugin/abolish.vim @@ -0,0 +1,2 @@ +let g:abolish_save_file = "/home/spike/.config/nvim/after/plugin/abolish.vim" +Abolish place{ho,h}ler{} placeholder diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 88d90bc..935ca21 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -335,6 +335,8 @@ M.general = { --{{{ "notify " }, ]] + ["A"] = { "ArgWrap", "arg wrap" }, + -- TODO: move to lspconfig section -- ["lsp"] = { " lua require('custom.plugins.configs.navigator').enable()", "lsp enable"}, diff --git a/lua/custom/plugins/configs/navigator.lua b/lua/custom/plugins/configs/navigator.lua index 1b475cd..51ef8eb 100644 --- a/lua/custom/plugins/configs/navigator.lua +++ b/lua/custom/plugins/configs/navigator.lua @@ -226,6 +226,7 @@ local config = { autopep8 = { enabled = false }, -- pylint = { enabled = false }, -- disabled in null-ls flake8 = { enabled = false }, + mccabe = { enabled = false }, pycodestyle= { enabled = false}, pyflakes = { enabled = false }, } diff --git a/lua/custom/plugins/init.lua b/lua/custom/plugins/init.lua index 38f0ecf..5f89b41 100644 --- a/lua/custom/plugins/init.lua +++ b/lua/custom/plugins/init.lua @@ -82,10 +82,14 @@ return { end }, -- Treesitter dev/exploration tool - ["nvim-treesitter/playground"] = { + -- https://git.blob42.xyz/blob42/playground/commit/460fe1b3e3b2971c52c5f02a7dbbb132f1f30584 + -- ["nvim-treesitter/playground"] = { + ["https://git.blob42.xyz/blob42/playground"] = { lock = true, opt = true, cmd = { "TSPlayground*" }, + commit = "460fe1b3e3b2971c52c5f02a7dbbb132f1f30584", + }, ["nvim-treesitter/nvim-treesitter-context"] = { @@ -256,6 +260,12 @@ return { cmd = {"Tabularize"} }, -- }}} + ["FooSoft/vim-argwrap"] = { + -- setup = function() + -- + -- end + }, + -- ["p00f/nvim-ts-rainbow"] = { -- opt = true, @@ -322,12 +332,12 @@ return { -- scren saver - ["folke/drop.nvim"] = { - opt = true, - config = function() - require("drop").setup() - end - }, + -- ["folke/drop.nvim"] = { + -- opt = true, + -- config = function() + -- require("drop").setup() + -- end + -- }, -- repeat operator for plugin commands ["tpope/vim-repeat"] = {