blob: c2803cda55e640a69985b58a7250ace6e0cc4c2b (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
|
(local lspconfig (require :lspconfig))
(local configs (require :lspconfig.configs))
(local {: attach} (require :conf.lsp))
(lspconfig.pyright.setup {:root_dir (lspconfig.util.root_pattern :.git
(vim.fn.getcwd))
:on_attach attach})
(lspconfig.tsserver.setup {:root_dir (lspconfig.util.root_pattern :.git
(vim.fn.getcwd))
:on_attach attach})
(local pid (vim.fn.getpid))
(lspconfig.omnisharp.setup {:cmd [:OmniSharp
:--languageserver
:--hostPID
(tostring pid)]
:handlers {[:textDocument/definition] (. (require :omnisharp_extended)
:handler)}
:root_dir (lspconfig.util.root_pattern :.git
(vim.fn.getcwd))
:on_attach attach})
(lspconfig.gopls.setup {:root_dir (lspconfig.util.root_pattern :.git
(vim.fn.getcwd))
:on_attach attach
:settings {:gopls {:codelenses {:test true :bench true}
;; Show a code lens toggling the display of gc's choices.}
:buildFlags [:-tags=all]}}})
;; (tset configs :fennel_language_server
;; {:default_config {;; replace it with true path
;; :cmd [:fennel-language-server]
;; :filetypes [:fennel]
;; :single_file_support true
;; ;; source code resides in directory `fnl/`
;; :root_dir (lspconfig.util.root_pattern :fnl)
;; :settings {:fennel {:workspace {;; If you are using hotpot.nvim or aniseed,
;; ;; make the server aware of neovim runtime files.
;; :library (vim.api.nvim_list_runtime_paths)}
;; :diagnostics {:globals [:vim]}}}}})
;;
;; (lspconfig.fennel_language_server.setup {:on_attach attach})
|