2016-10-14 10:03:27 +03:00
|
|
|
" Scan the following dirs recursively for tags
|
2023-01-09 13:19:49 +03:00
|
|
|
let g:project_tags_dirs = ['kitty', 'kittens', 'tools']
|
2021-04-18 08:16:06 +03:00
|
|
|
if exists('g:ale_linters')
|
2023-01-26 06:14:16 +03:00
|
|
|
let g:ale_linters['python'] = ['mypy', 'ruff']
|
2021-04-18 08:16:06 +03:00
|
|
|
else
|
2023-01-26 06:14:16 +03:00
|
|
|
let g:ale_linters = {'python': ['mypy', 'ruff']}
|
2021-04-18 08:16:06 +03:00
|
|
|
endif
|
2021-04-17 14:23:48 +03:00
|
|
|
let g:ale_python_mypy_executable = './mypy-editor-integration'
|
2023-01-15 08:37:10 +03:00
|
|
|
let g:ale_fixers = {
|
|
|
|
\ "python": ["ruff"],
|
|
|
|
\}
|
|
|
|
autocmd FileType python noremap \i :ALEFix<CR>
|
2016-10-14 10:03:27 +03:00
|
|
|
set wildignore+==template.py
|
|
|
|
set wildignore+=tags
|
2017-11-20 10:26:10 +03:00
|
|
|
set expandtab
|
|
|
|
set tabstop=4
|
|
|
|
set shiftwidth=4
|
2020-07-02 11:52:03 +03:00
|
|
|
set softtabstop=0
|
2019-02-03 17:29:02 +03:00
|
|
|
set smarttab
|
2020-04-30 20:42:37 +03:00
|
|
|
python3 <<endpython
|
2016-10-14 10:03:27 +03:00
|
|
|
import sys
|
|
|
|
sys.path.insert(0, os.path.abspath('.'))
|
|
|
|
import kitty
|
|
|
|
endpython
|