[vim] flutter and dart config

This commit is contained in:
2023-02-13 17:57:40 +03:00
parent f83547919e
commit 3633c5bf6a
2 changed files with 9 additions and 2 deletions

7
vim/ftplugin/dart.vim Normal file
View File

@@ -0,0 +1,7 @@
set tabstop=2
set shiftwidth=2
set expandtab
set smartindent
xmap <leader>a <Plug>(coc-codeaction-selected)
nmap <leader>a <Plug>(coc-codeaction-selected)

View File

@@ -155,9 +155,9 @@ let g:ansible_yamlKeyName = 'yamlKey'
"
" CoC plugin settings
"
let g:coc_global_extensions = ['coc-pyright']
let g:coc_global_extensions = ['coc-pyright', 'coc-flutter']
function! s:enable_coc_for_type()
let l:filesuffix_whitelist = ['py']
let l:filesuffix_whitelist = ['py', 'dart']
if index(l:filesuffix_whitelist, expand('%:e')) == -1
let b:coc_enabled = 0
endif