rm neoformat plugin
This commit is contained in:
parent
5db8d84515
commit
0b55d45845
@ -68,7 +68,6 @@ M.plugins = {
|
|||||||
feline = true, -- statusline
|
feline = true, -- statusline
|
||||||
gitsigns = true, -- gitsigns in statusline
|
gitsigns = true, -- gitsigns in statusline
|
||||||
lspsignature = true, -- lsp enhancements
|
lspsignature = true, -- lsp enhancements
|
||||||
neoformat = true, -- universal code formatter
|
|
||||||
neoscroll = false, -- smooth scroll
|
neoscroll = false, -- smooth scroll
|
||||||
telescope_media = false, -- media previews within telescope finders
|
telescope_media = false, -- media previews within telescope finders
|
||||||
truezen = false, -- distraction free & minimalist UI mode
|
truezen = false, -- distraction free & minimalist UI mode
|
||||||
@ -179,10 +178,6 @@ M.mappings.plugins = {
|
|||||||
toggle = "<C-n>",
|
toggle = "<C-n>",
|
||||||
focus = "<leader>e",
|
focus = "<leader>e",
|
||||||
},
|
},
|
||||||
-- universal code formatter
|
|
||||||
neoformat = {
|
|
||||||
format = "<leader>fm",
|
|
||||||
},
|
|
||||||
-- multitool for finding & picking things
|
-- multitool for finding & picking things
|
||||||
telescope = {
|
telescope = {
|
||||||
buffers = "<leader>fb",
|
buffers = "<leader>fb",
|
||||||
|
@ -149,10 +149,6 @@ M.nvimtree = function()
|
|||||||
map("n", plugin_maps.nvimtree.focus, ":NvimTreeFocus <CR>")
|
map("n", plugin_maps.nvimtree.focus, ":NvimTreeFocus <CR>")
|
||||||
end
|
end
|
||||||
|
|
||||||
M.neoformat = function()
|
|
||||||
map("n", plugin_maps.neoformat.format, ":Neoformat <CR>")
|
|
||||||
end
|
|
||||||
|
|
||||||
M.telescope = function()
|
M.telescope = function()
|
||||||
local m = plugin_maps.telescope
|
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_prev()<CR>", opts)
|
||||||
buf_set_keymap("n", "]d", "<cmd>lua vim.lsp.diagnostic.goto_next()<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>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)
|
buf_set_keymap("v", "<space>ca", "<cmd>lua vim.lsp.buf.range_code_action()<CR>", opts)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -239,16 +239,6 @@ return packer.startup(function()
|
|||||||
end,
|
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 {
|
use {
|
||||||
"terrortylor/nvim-comment",
|
"terrortylor/nvim-comment",
|
||||||
disable = not plugin_status.comment,
|
disable = not plugin_status.comment,
|
||||||
|
Loading…
Reference in New Issue
Block a user