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

View File

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

View File

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