mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-01-28 10:09:55 -06:00
Update lsp install plugins and fix treesitter search
This commit is contained in:
@@ -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)
|
||||
|
||||
@@ -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/"
|
||||
]}})
|
||||
|
||||
|
||||
@@ -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 {}
|
||||
|
||||
Reference in New Issue
Block a user