Update lsp install plugins and fix treesitter search

This commit is contained in:
Proctor
2021-11-30 20:31:18 -06:00
parent 1be7abd171
commit 96fc1f6685
3 changed files with 11 additions and 8 deletions

View File

@@ -95,7 +95,7 @@
(print "LSP Client Attached."))
(let [lspi (require :lspinstall)]
(let [lspi (require :nvim-lsp-installer)]
(when lspi
(defn lsp-execute-command [cmd ...]
@@ -109,11 +109,14 @@
:arguments args})))
(defn setup-servers []
(lspi.setup)
(let [lspconfig (require :lspconfig)
servers (lspi.installed_servers)]
(each [_ server (pairs servers)]
((. lspconfig server :setup) {:on_attach on_attach :flags {:debounce_text_changes 150} }))))
(lspi.on_server_ready (fn [server]
(let [opts {:on_attach on_attach :flags {:debounce_text_changes 150} }]
(server:setup opts))))
;; (let [lspconfig (require :lspconfig)
;; servers (lspi.get_installed_servers)]
;; (each [_ server (pairs servers)]
;; (server.setup {:on_attach on_attach :flags {:debounce_text_changes 150} })))
)
(defn on-post-install []
(setup-servers)

View File

@@ -7,7 +7,7 @@
{:defaults
{:vimgrep_arguments ["ag" "--nocolor" "--noheading"
"--number" "--column" "--nobreak"
"--smart-case" "--hidden" "--follow" "--skip-vcs-ignores"
"--smart-case" "--hidden" "--follow" ; "--skip-vcs-ignores"
; "-g" "!.git/"
]}})

View File

@@ -39,7 +39,6 @@
:hrsh7th/nvim-compe {:mod :compe} ; autocomplete
:jiangmiao/auto-pairs {} ; backets, parens, and quotes in pairs
:junegunn/vim-easy-align {:mod :easyalign}
:kabouzeid/nvim-lspinstall {} ; NeoVim lsp server installs
:kovisoft/paredit {}
:kristijanhusak/vim-dadbod-completion {}
:kristijanhusak/vim-dadbod-ui {}
@@ -63,6 +62,7 @@
:tpope/vim-unimpaired {}
:tpope/vim-vinegar {}
:wbthomason/packer.nvim {:mod :packer}
:williamboman/nvim-lsp-installer {} ; NeoVim lsp server installs
; :luochen1990/rainbow {}
; :thecontinium/asyncomplete-conjure.vim {}