mirror of
https://github.com/cap153/nvim.git
synced 2025-12-26 19:25:01 +08:00
更新neovim配置
This commit is contained in:
parent
926899e09a
commit
23ac44ae4e
34 changed files with 408 additions and 1312 deletions
|
|
@ -1,17 +1,59 @@
|
|||
-- ===
|
||||
-- === flutter-tools
|
||||
-- ===
|
||||
|
||||
return {
|
||||
'akinsho/flutter-tools.nvim',
|
||||
'nvim-flutter/flutter-tools.nvim',
|
||||
lazy = false,
|
||||
dependencies = {
|
||||
'nvim-lua/plenary.nvim',
|
||||
'dart-lang/dart-vim-plugin',
|
||||
'stevearc/dressing.nvim', -- optional for vim.ui.select
|
||||
'mfussenegger/nvim-dap',
|
||||
},
|
||||
ft= {"dart"},
|
||||
lazy = true,
|
||||
config = function()
|
||||
require("flutter-tools").setup {} -- use defaults
|
||||
require("telescope").load_extension("flutter")
|
||||
require("flutter-tools").setup {
|
||||
ui = {
|
||||
border = "rounded",
|
||||
notification_style = "native",
|
||||
},
|
||||
decorations = {
|
||||
statusline = {
|
||||
app_version = true,
|
||||
device = true,
|
||||
},
|
||||
},
|
||||
widget_guides = {
|
||||
enabled = true, -- 轮廓窗口的缩进参考线
|
||||
debug = true,
|
||||
},
|
||||
closing_tags = {
|
||||
highlight = "Comment",
|
||||
prefix = "// ",
|
||||
enabled = true,
|
||||
},
|
||||
lsp = {
|
||||
color = {
|
||||
enabled = true,
|
||||
background = true,
|
||||
foreground = false,
|
||||
virtual_text = false,
|
||||
virtual_text_str = "■",
|
||||
},
|
||||
settings = {
|
||||
showTodos = true,
|
||||
enableSnippets = true,
|
||||
completeFunctionCalls = false,
|
||||
},
|
||||
},
|
||||
debugger = {
|
||||
enabled = true,
|
||||
run_via_dap = false,
|
||||
},
|
||||
dev_log = {
|
||||
enabled = true,
|
||||
open_cmd = "edit", -- 用于打开日志缓冲区的命令,可以设置为"tabedit"或"split"或者"vsplit"缓冲区将在不同位置打开
|
||||
},
|
||||
} -- use defaults
|
||||
end
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue