rm neoformat plugin
This commit is contained in:
parent
5db8d84515
commit
0b55d45845
4 changed files with 1 additions and 20 deletions
|
@ -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 = "<C-n>",
|
||||
focus = "<leader>e",
|
||||
},
|
||||
-- universal code formatter
|
||||
neoformat = {
|
||||
format = "<leader>fm",
|
||||
},
|
||||
-- multitool for finding & picking things
|
||||
telescope = {
|
||||
buffers = "<leader>fb",
|
||||
|
|
|
@ -149,10 +149,6 @@ M.nvimtree = function()
|
|||
map("n", plugin_maps.nvimtree.focus, ":NvimTreeFocus <CR>")
|
||||
end
|
||||
|
||||
M.neoformat = function()
|
||||
map("n", plugin_maps.neoformat.format, ":Neoformat <CR>")
|
||||
end
|
||||
|
||||
M.telescope = function()
|
||||
local m = plugin_maps.telescope
|
||||
|
||||
|
|
|
@ -36,7 +36,7 @@ local function on_attach(_, bufnr)
|
|||
buf_set_keymap("n", "[d", "<cmd>lua vim.lsp.diagnostic.goto_prev()<CR>", opts)
|
||||
buf_set_keymap("n", "]d", "<cmd>lua vim.lsp.diagnostic.goto_next()<CR>", opts)
|
||||
buf_set_keymap("n", "<space>q", "<cmd>lua vim.lsp.diagnostic.set_loclist()<CR>", opts)
|
||||
buf_set_keymap("n", "<space>f", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
|
||||
buf_set_keymap("n", "<space>fm", "<cmd>lua vim.lsp.buf.formatting()<CR>", opts)
|
||||
buf_set_keymap("v", "<space>ca", "<cmd>lua vim.lsp.buf.range_code_action()<CR>", opts)
|
||||
end
|
||||
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue