From 3633c5bf6ae57eccf143db6e9bab89cde654c66f Mon Sep 17 00:00:00 2001 From: Dmitry Chumak Date: Mon, 13 Feb 2023 17:57:40 +0300 Subject: [PATCH] [vim] flutter and dart config --- vim/ftplugin/dart.vim | 7 +++++++ vim/vimrc | 4 ++-- 2 files changed, 9 insertions(+), 2 deletions(-) create mode 100644 vim/ftplugin/dart.vim diff --git a/vim/ftplugin/dart.vim b/vim/ftplugin/dart.vim new file mode 100644 index 0000000..3b13e73 --- /dev/null +++ b/vim/ftplugin/dart.vim @@ -0,0 +1,7 @@ +set tabstop=2 +set shiftwidth=2 +set expandtab +set smartindent + +xmap a (coc-codeaction-selected) +nmap a (coc-codeaction-selected) diff --git a/vim/vimrc b/vim/vimrc index a7fc463..153ee14 100644 --- a/vim/vimrc +++ b/vim/vimrc @@ -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