From 0b55d4584559de61a715ec78af940e44481b71b5 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Wed, 29 Sep 2021 22:34:22 +0530 Subject: [PATCH] rm neoformat plugin --- lua/core/default_config.lua | 5 ----- lua/core/mappings.lua | 4 ---- lua/plugins/configs/lspconfig.lua | 2 +- lua/plugins/init.lua | 10 ---------- 4 files changed, 1 insertion(+), 20 deletions(-) diff --git a/lua/core/default_config.lua b/lua/core/default_config.lua index 2e4e860..3ef78c0 100644 --- a/lua/core/default_config.lua +++ b/lua/core/default_config.lua @@ -68,7 +68,6 @@ M.plugins = { feline = true, -- statusline gitsigns = true, -- gitsigns in statusline lspsignature = true, -- lsp enhancements - neoformat = true, -- universal code formatter neoscroll = false, -- smooth scroll telescope_media = false, -- media previews within telescope finders truezen = false, -- distraction free & minimalist UI mode @@ -179,10 +178,6 @@ M.mappings.plugins = { toggle = "", focus = "e", }, - -- universal code formatter - neoformat = { - format = "fm", - }, -- multitool for finding & picking things telescope = { buffers = "fb", diff --git a/lua/core/mappings.lua b/lua/core/mappings.lua index 4d9d157..c2300cf 100644 --- a/lua/core/mappings.lua +++ b/lua/core/mappings.lua @@ -149,10 +149,6 @@ M.nvimtree = function() map("n", plugin_maps.nvimtree.focus, ":NvimTreeFocus ") end -M.neoformat = function() - map("n", plugin_maps.neoformat.format, ":Neoformat ") -end - M.telescope = function() local m = plugin_maps.telescope diff --git a/lua/plugins/configs/lspconfig.lua b/lua/plugins/configs/lspconfig.lua index 145600c..f704b9f 100644 --- a/lua/plugins/configs/lspconfig.lua +++ b/lua/plugins/configs/lspconfig.lua @@ -36,7 +36,7 @@ local function on_attach(_, bufnr) buf_set_keymap("n", "[d", "lua vim.lsp.diagnostic.goto_prev()", opts) buf_set_keymap("n", "]d", "lua vim.lsp.diagnostic.goto_next()", opts) buf_set_keymap("n", "q", "lua vim.lsp.diagnostic.set_loclist()", opts) - buf_set_keymap("n", "f", "lua vim.lsp.buf.formatting()", opts) + buf_set_keymap("n", "fm", "lua vim.lsp.buf.formatting()", opts) buf_set_keymap("v", "ca", "lua vim.lsp.buf.range_code_action()", opts) end diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index 4c35c3b..2a326f5 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -239,16 +239,6 @@ return packer.startup(function() end, } - use { - "sbdchd/neoformat", - disable = not plugin_status.neoformat, - cmd = "Neoformat", - setup = function() - require("core.mappings").neoformat() - end, - } - - -- use "alvan/vim-closetag" -- for html autoclosing tag use { "terrortylor/nvim-comment", disable = not plugin_status.comment,