Skip to content

Commit

Permalink
Default.
Browse files Browse the repository at this point in the history
  • Loading branch information
takkii committed Dec 11, 2024
0 parents commit 7cb7601
Show file tree
Hide file tree
Showing 5 changed files with 178 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.DS_Store
13 changes: 13 additions & 0 deletions LICENSE.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004

Copyright (c) 2024-2025 Takayuki Kamiyama <[email protected]>

Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.

DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION

0. You just DO WHAT THE FUCK YOU WANT TO.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
### ddc_spring_load

[ddc.vim](https://github.com/Shougo/ddc.vim)

_This is Settings file to ddc.vim._

_how to use, [here](https://github.com/takkii/ddc_spring_load/wiki/ddc-spring-load)_

84 changes: 84 additions & 0 deletions autoload/spring_load.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,84 @@
" ddc.vim
call plug#('Shougo/ddc.vim')
call plug#('Shougo/ddc-converter_remove_overlap')
call plug#('Shougo/ddc-matcher_head')
call plug#('Shougo/ddc-sorter_rank')
call plug#('Shougo/pum.vim')
call plug#('Shougo/ddc-around')
call plug#('Shougo/ddc-source-around')
call plug#('Shougo/ddc-source-lsp')
call plug#('Shougo/ddc-ui-native')
call plug#('vim-denops/denops.vim')
call plug#('LumaKernel/ddc-file')
call plug#('neovim/nvim-lspconfig')
call plug#('uga-rosa/ddc-nvim-lsp-setup')
call plug#( 'matsui54/ddc-source-dictionary')

" dictionary path
setlocal dictionary+=C:/Users/sudok/GitHub/ruby-dictionary3/autoload/source/ruby_method.txt

" You must set the default ui.
call ddc#custom#patch_global('ui', 'native')

call ddc#custom#patch_global('sources', [
\ 'around',
\ 'file',
\ 'lsp',
\ 'dictionary'
\ ])

call ddc#custom#patch_global('sourceParams', #{
\ lsp: #{
\ snippetEngine: denops#callback#register({
\ body -> vsnip#anonymous(body)
\ }),
\ enableResolveItem: v:true,
\ enableAdditionalTextEdit: v:true,
\ },
\ dictionary: #{
\ dictPaths: ['C:/Users/sudok/GitHub/ruby-dictionary3/autoload/source/ruby_method.txt'],
\ smartCase: v:true,
\ isVolatile: v:true,
\ }
\ })

call ddc#custom#patch_global(#{
\ sourceOptions: #{
\ _: #{
\ matchers: ['matcher_head'],
\ sorters: ['sorter_rank'],
\ converters: ['converter_remove_overlap'],
\ },
\ dictionary: #{
\ mark: 'D',
\ },
\ around: #{
\ mark: 'ddc_spring_load',
\ },
\ file: #{
\ mark: 'file',
\ isVolatile: v:true,
\ forceCompletionPattern: '\S/\S*',
\ },
\ lsp: #{
\ mark: 'LSP',
\ forceCompletionPattern: '\.\w*|:\w*|->\w*',
\ },
\},
\ sourceParams: #{
\ lsp: #{
\ snippetEngine: denops#callback#register({
\ body -> vsnip#anonymous(body)
\ }),
\ enableResolveItem: v:true,
\ enableAdditionalTextEdit: v:true,
\ confirmBehavior: 'replace',
\ isVolatile: v:true,
\ forceCompletionPattern: '\S/\S*',
\ }
\ },
\})

call ddc#enable()
inoremap <Tab> <Cmd>call pum#map#insert_relative(+1)<CR>
inoremap <S-Tab> <Cmd>call pum#map#insert_relative(-1)<CR>
72 changes: 72 additions & 0 deletions autoload/ware_settings.vim
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
" Terminal Settings
command! -nargs=* TES split | wincmd j | resize 20 | terminal <args>

" Open Terminal in insert mode
autocmd TermOpen * :startinsert

" Terminal Mode to nonumber
autocmd TermOpen * setlocal norelativenumber
autocmd TermOpen * setlocal nonumber

" using vim-plug.
if filereadable(expand('~/.neovim/plugged/neoruby-debugger/plugins/command.vim'))
source ~/.neovim/plugged/neoruby-debugger/plugins/command.vim
endif

" using NERDTree
autocmd vimenter * NERDTree
let NERDTreeShowHidden=1
nnoremap <C-t> :NERDTreeToggle<CR>
" Debug Python Keymap
nnoremap <silent> <leader>dn :lua require('dap-python').test_method()<CR>
nnoremap <silent> <leader>df :lua require('dap-python').test_class()<CR>
vnoremap <silent> <leader>ds <ESC>:lua require('dap-python').debug_selection()<CR>
" Menu Settings
set completeopt+=menuone

" Appearance
let g:lightline = {
\ 'colorscheme': 'icebergDark',
\ 'active': {
\ 'left': [ [ 'mode', 'paste' ],
\ [ 'readonly', 'filename', 'modified' ],
\ [ 'linter_checking', 'linter_errors', 'linter_warnings', 'linter_ok' ] ],
\ },
\ }

let g:lightline.component_expand = {
\ 'linter_checking': 'lightline#ale#checking',
\ 'linter_warnings': 'lightline#ale#warnings',
\ 'linter_errors': 'lightline#ale#errors',
\ 'linter_ok': 'lightline#ale#ok',
\ }
let g:lightline.component_type = {
\ 'linter_checking': 'left',
\ 'linter_warnings': 'warning',
\ 'linter_errors': 'error',
\ 'linter_ok': 'left',
\ }

let b:ale_linters = {
\ 'javascript': ['eslint', 'eslint-plugin-vue'],
\ 'python': ['pyflakes', 'pep8'],
\ 'ruby': ['rubocop'],
\ 'tex': ['textlint'],
\ 'markdown': ['textlint'],
\ 'css': ['stylelint'],
\}

let g:ale_statusline_format = ['E%d', 'W%d', 'ok']
let g:ale_set_loclist = 0
let g:ale_set_quickfix = 1
nmap <silent> <C-n> <Plug>(ale_next_wrap)
function s:MoveToFileAtStart()
call feedkeys("\<Space>")
call feedkeys("\s")
call feedkeys("\l")
endfunction

cd ~/

0 comments on commit 7cb7601

Please sign in to comment.