removed lsp-format in favor of keybind and quick-tool

This commit is contained in:
Sven Vogel 2024-06-06 12:40:35 +02:00
parent 135932bcf3
commit 9316b1907e
3 changed files with 19 additions and 5 deletions

View File

@ -142,5 +142,11 @@ return {
"<C-f>",
"<cmd>Telescope current_buffer_fuzzy_find<CR>",
{ noremap = true, desc = "Find" },
},
{
{ "n" },
"<S-f>",
"<cmd>lua vim.lsp.buf.format()<CR>",
{ noremap = true, desc = "Format active buffer" }
}
}

View File

@ -38,8 +38,6 @@ return {
function(server_name) -- default handler (optional)
require("lspconfig")[server_name].setup({
on_attach = function(client, bufnr)
-- setup lsp-format
require("lsp-format").on_attach(client, bufnr)
end
})
end,
@ -58,9 +56,6 @@ return {
require("lspconfig").gdscript.setup({})
end,
},
{
'lukas-reineke/lsp-format.nvim',
},
{
"jinzhongjia/LspUI.nvim",
branch = "main",

View File

@ -63,6 +63,19 @@ return {
vim.cmd("Mason")
end, 100)
end
},
{
function()
return ' 󰛖 '
end,
padding = 0,
on_click = function()
vim.defer_fn(
function()
vim.lsp.buf.format()
end, 100
)
end
}
},
lualine_c = {