removed lsp-format in favor of keybind and quick-tool
This commit is contained in:
parent
135932bcf3
commit
9316b1907e
|
@ -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" }
|
||||
}
|
||||
}
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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 = {
|
||||
|
|
Loading…
Reference in New Issue