mrcjkb / rustaceanvim

🦀 Supercharge your Rust experience in Neovim! A heavily modified fork of rust-tools.nvim
GNU General Public License v2.0
1.62k stars 58 forks source link

Rounded borders in floating window #395

Closed frolvanya closed 4 months ago

frolvanya commented 4 months ago

Why border option was removed since https://github.com/mrcjkb/rustaceanvim/commit/1c3d3a75bebcb16df2a093b147ba498185e4ab17? Is it possible to set custom border in the current version of rustaceanvim?

Before:

image

After:

image

Here's my config. It sets hover window's border to be rounded, but for some reason it doesn't work with :RustLsp hover actions. What am I missing?

image
frolvanya commented 4 months ago

I'm so sorry for creating issue before checking discussion tab I was able to solve my problem using your advice from #391

{
    "mrcjkb/rustaceanvim",
    ft = { "rust" },
    config = function()
        vim.g.rustaceanvim = {
            tools = {
                float_win_config = {
                    border = 'rounded'
                }
            },
            server = {
                on_attach = require("lvim.lsp").common_on_attach
            },
        }
    end,
}