Skip to content

Commit

Permalink
型いのがお好き
Browse files Browse the repository at this point in the history
  • Loading branch information
kuuote committed Jan 7, 2024
1 parent 827c11a commit 79ab303
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 13 deletions.
19 changes: 6 additions & 13 deletions conf/plug/lspoints.vim
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
function s:initialize()
call lspoints#load_extensions([
\ 'config',
\ 'format',
\ 'nvim_diagnostics',
\ ])
" \ 'semantic_tokens',
call lspoints#settings#patch(#{
\ tracePath: '/tmp/lspoints',
\ })
endfunction
call s:initialize()

Expand All @@ -21,16 +19,11 @@ endfunction
autocmd vimrc User LspointsAttach:* call s:on_attach()

function s:attach_denols() abort
call lspoints#attach('denols', #{
\ cmd: ['deno', 'lsp'],
\ initializationOptions: #{
\ enable: v:true,
\ unstable: v:true,
\ suggest: #{
\ autoImports: v:false,
\ },
\ },
\ })
let name = bufname()
if name =~# ':/' && name !~# '^\v(file|deno)'
return
endif
call lspoints#attach('denols')
endfunction

autocmd vimrc FileType typescript,typescriptreact call s:attach_denols()
21 changes: 21 additions & 0 deletions denops/@lspoints/config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
import { BaseExtension, Client, LSP, Lspoints } from "../deps/lspoints.ts";

export class Extension extends BaseExtension {
override async initialize(denops: Denops, lspoints: Lspoints) {
lspoints.settings.patch({
startOptions: {
denols: {
cmd: ["deno", "lsp"],
initializationOptions: {
enable: true,
unstable: true,
},
},
rust_analyzer: {
cmd: ["rust-analyzer"],
},
},
tracePath: "/tmp/lspoints",
});
}
}

0 comments on commit 79ab303

Please sign in to comment.