mirror of
https://github.com/elkowar/dots-of-war.git
synced 2024-12-25 13:42:23 +00:00
cleanup
This commit is contained in:
parent
4b9ab46ce7
commit
d79ff1ce13
3 changed files with 23 additions and 28 deletions
|
@ -39,34 +39,30 @@
|
||||||
(set capabilities.textDocument.completion.completionItem.resolveSupport
|
(set capabilities.textDocument.completion.completionItem.resolveSupport
|
||||||
{ :properties ["documentation" "detail" "additionalTextEdits"]})
|
{ :properties ["documentation" "detail" "additionalTextEdits"]})
|
||||||
|
|
||||||
(lsp.rust_analyzer.setup { :on_attach on_attach
|
(fn init-lsp [lsp-name ?opts]
|
||||||
:capabilities capabilities})
|
"initialize a language server with defaults"
|
||||||
(lsp.vimls.setup { :on_attach on_attach})
|
(let [merged-opts {:on_attach on_attach}]
|
||||||
(lsp.tsserver.setup { :on_attach on_attach :root_dir (lsp.util.root_pattern "package.json")})
|
(each [k v (pairs (or opts {}))]
|
||||||
(lsp.bashls.setup { :on_attach on_attach })
|
(tset merged-opts k v))
|
||||||
(lsp.html.setup { :on_attach on_attach})
|
((. lsp lsp-name :setup) merged-opts)))
|
||||||
(lsp.denols.setup { :on_attach on_attach
|
|
||||||
:root_dir (better_root_pattern [".git"] ["package.json"])})
|
|
||||||
(lsp.hls.setup { :on_attach on_attach
|
|
||||||
:settings { :languageServerHaskell { :formattingProvider "stylish-haskell"}}})
|
|
||||||
|
|
||||||
|
|
||||||
(lsp.jsonls.setup
|
(init-lsp :rust_analyzer { :capabilities capabilities})
|
||||||
{ :on_attach on_attach
|
(init-lsp :tsserver { :root_dir (lsp.util.root_pattern "package.json")})
|
||||||
:commands { :Format [ (fn [] (vim.lsp.buf.range_formatting [] [0 0] [(vim.fn.line "$") 0]))]}})
|
(init-lsp :jsonls { :commands { :Format [ #(vim.lsp.buf.range_formatting [] [0 0] [(vim.fn.line "$") 0])]}})
|
||||||
|
(init-lsp :denols { :root_dir (better_root_pattern [".git"] ["package.json"])})
|
||||||
|
(init-lsp :hls { :settings { :languageServerHaskell { :formattingProvider "stylish-haskell"}}})
|
||||||
|
(init-lsp :vimls)
|
||||||
|
(init-lsp :bashls)
|
||||||
|
(init-lsp :erlangls)
|
||||||
|
(init-lsp :yamlls)
|
||||||
|
(init-lsp :html)
|
||||||
|
(init-lsp :cssls)
|
||||||
|
|
||||||
|
|
||||||
|
;(lsp.vimls.setup { :on_attach on_attach})
|
||||||
|
|
||||||
|
|
||||||
(when (not lsp.erlangls)
|
|
||||||
(set lsp-configs.erlangls
|
|
||||||
{ :default_config
|
|
||||||
{ :cmd ["erlang_ls"]
|
|
||||||
:filetypes ["lua"]
|
|
||||||
:root_dir (lsp.util.root_pattern "rebar.config")
|
|
||||||
:settings {}}}))
|
|
||||||
(lsp.erlangls.setup {})
|
|
||||||
|
|
||||||
|
|
||||||
(compe.setup
|
(compe.setup
|
||||||
{ :enabled true
|
{ :enabled true
|
||||||
|
|
|
@ -13,5 +13,5 @@
|
||||||
{:defaults
|
{:defaults
|
||||||
{:i { "<esc>" actions.close}}})
|
{:i { "<esc>" actions.close}}})
|
||||||
|
|
||||||
|
(telescope.load_extension "media_files")
|
||||||
|
|
||||||
|
|
3
init.vim
3
init.vim
|
@ -123,7 +123,7 @@ augroup basics
|
||||||
autocmd BufRead,BufNewFile *.ddl setlocal filetype=sql
|
autocmd BufRead,BufNewFile *.ddl setlocal filetype=sql
|
||||||
|
|
||||||
|
|
||||||
" Auto-close quickfix list after entry is selected
|
" Auto-close quickfix list when element
|
||||||
autocmd FileType qf nnoremap <buffer> <CR> <CR>:cclose<CR>
|
autocmd FileType qf nnoremap <buffer> <CR> <CR>:cclose<CR>
|
||||||
|
|
||||||
augroup END
|
augroup END
|
||||||
|
@ -214,7 +214,6 @@ au Syntax * RainbowParenthesesLoadBraces
|
||||||
nnoremap <silent> <C-p> :Telescope find_files<CR>
|
nnoremap <silent> <C-p> :Telescope find_files<CR>
|
||||||
|
|
||||||
|
|
||||||
lua require('telescope').load_extension('media_files')
|
|
||||||
|
|
||||||
|
|
||||||
"map <Leader>f <Plug>(easymotion-bd-f)
|
"map <Leader>f <Plug>(easymotion-bd-f)
|
||||||
|
|
Loading…
Reference in a new issue