akinsho / flutter-tools.nvim

Tools to help create flutter apps in neovim using the native lsp

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[BUG] can't set border style

aurum77 opened this issue · comments

Is there an existing issue for this?

  • I have searched the existing issues

Current Behavior

border style doesn't change after setting it in the configuration

Expected Behavior

border style is supposed to be rounded after setting it in the configuration

Steps To Reproduce

config:

local status_ok, flutter_tools = pcall(require, "flutter-tools")

if not status_ok then
	return
end

local utils = require("core.utils")

flutter_tools.setup({
	ui = {
		border = "rounded",
	},
	dev_tools = {
		auto_open_browser = true,
	},
	lsp = {
		on_attach = utils.on_attach,
		capabilities = utils.capabilities,
	},
})

on_attach:

function M.on_attach(client, bufnr)
	local bufopts = { noremap = true, silent = true, buffer = bufnr }
	map("n", "gd", "<Cmd>Telescope lsp_definitions<CR>", bufopts)
	map("n", "gD", vim.lsp.buf.declaration, bufopts)
	map("n", "K", vim.lsp.buf.hover, bufopts)
	map("n", "<Leader>k", vim.lsp.buf.signature_help, bufopts)
	map("n", "<Leader>wa", vim.lsp.buf.add_workspace_folder, bufopts)
	map("n", "<Leader>wr", vim.lsp.buf.remove_workspace_folder, bufopts)
	map("n", "<Leader>wl", function()
		print(vim.inspect(vim.lsp.buf.list_workspace_folders()))
	end, bufopts)
	map("n", "<Leader>D", vim.lsp.buf.type_definition, bufopts)
	map("n", "<Leader>rn", vim.lsp.buf.rename, bufopts)
	map("n", "<Leader>ca", vim.lsp.buf.code_action, bufopts)
	map("n", "gi", "<Cmd>Telescope lsp_implementations<CR>", bufopts)
	map("n", "gr", "<Cmd>Telescope lsp_references<CR>", bufopts)
	map("n", "<Leader>fa", "<Cmd>TroubleToggle<CR>", bufopts)
	map("n", "<Leader>fd", "<Cmd>TroubleToggle document_diagnostics<CR>", bufopts)
end

capabilities:

M.omnisharp_handlers = {
	["textDocument/definition"] = require("omnisharp_extended").handler,
	["textDocument/hover"] = vim.lsp.with(vim.lsp.handlers.hover, {
		border = "rounded",
	}),
}

Environment

- OS: Arch Linux, Linux 6.6.9-arch1-1
- Flutter version: Flutter 3.16.5 • channel stable • https://github.com/flutter/flutter.git
Framework • revision 78666c8dc5 (2 weeks ago) • 2023-12-19 16:14:14 -0800
Engine • revision 3f3e560236
Tools • Dart 3.2.3 • DevTools 2.28.4
- Is flutter in $PATH: yes
- neovim version: NVIM v0.9.5, Build type: Release, LuaJIT 2.1.1702233742

Anything else?

No response