mirror of
https://github.com/stevenproctor/dotfiles.git
synced 2026-01-28 08:39:56 -06:00
Updates to LSP and cmp plugins
This commit is contained in:
@@ -92,7 +92,7 @@
|
||||
(a.map-indexed set-opt val-based-opts)
|
||||
|
||||
(nvim.ex.syntax "on")
|
||||
(nvim.ex.colorscheme :solarized8)
|
||||
(nvim.ex.colorscheme :soluarized)
|
||||
|
||||
|
||||
|
||||
|
||||
42
nvim/.config/nvim/fnl/dotfiles/plugin/cmp.fnl
Normal file
42
nvim/.config/nvim/fnl/dotfiles/plugin/cmp.fnl
Normal file
@@ -0,0 +1,42 @@
|
||||
(module dotfiles.plugin.cmp
|
||||
{autoload {nvim aniseed.nvim}})
|
||||
|
||||
|
||||
(module config.plugin.cmp
|
||||
{autoload {nvim aniseed.nvim
|
||||
cmp cmp}})
|
||||
|
||||
(def- cmp-src-menu-items
|
||||
{:buffer "buff"
|
||||
:conjure "conj"
|
||||
:nvim_lsp "lsp"})
|
||||
|
||||
(def- cmp-srcs
|
||||
[{:name :nvim_lsp}
|
||||
{:name :vsnip}
|
||||
{:name :conjure}
|
||||
{:name :buffer}])
|
||||
|
||||
;; Setup cmp with desired settings
|
||||
(let [cmp (require :cmp)]
|
||||
(cmp.setup {:formatting
|
||||
{:format (fn [entry item]
|
||||
(set item.menu (or (. cmp-src-menu-items entry.source.name) ""))
|
||||
item)}
|
||||
:mapping {:<C-p> (cmp.mapping.select_prev_item)
|
||||
:<C-n> (cmp.mapping.select_next_item)
|
||||
:<C-b> (cmp.mapping.scroll_docs (- 4))
|
||||
:<C-f> (cmp.mapping.scroll_docs 4)
|
||||
:<C-Space> (cmp.mapping.complete)
|
||||
:<C-e> (cmp.mapping.close)
|
||||
:<CR> (cmp.mapping.confirm {:behavior cmp.ConfirmBehavior.Insert
|
||||
:select true})}
|
||||
|
||||
:snippet {:expand (fn [args]
|
||||
(nvim.fn.vsnip#anonymous args.body))}
|
||||
:sources cmp-srcs}))
|
||||
|
||||
|
||||
;;; imap <expr> <C-j> vsnip#available(1) ? '<Plug>(vsnip-expand)' : '<C-j>'
|
||||
;;; imap <expr> <C-l> vsnip#available(1) ? '<Plug>(vsnip-expand-or-jump)' : '<C-l>'
|
||||
;;; smap <expr> <C-l> vsnip#available(1) ? '<Plug>(vsnip-expand-or-jump)' : '<C-l>'
|
||||
@@ -24,10 +24,14 @@
|
||||
:text sign
|
||||
:numhl sign-level})))
|
||||
|
||||
(define-sign :Error "☢️")
|
||||
(define-sign :Warn "⚠️")
|
||||
(define-sign :SignHint "🔎")
|
||||
(define-sign :Info "ℹ️")
|
||||
; (define-sign :Error "☢️")
|
||||
; (define-sign :Warn "⚠️")
|
||||
; (define-sign :SignHint "🔎")
|
||||
; (define-sign :Info "ℹ️")
|
||||
(define-sign :Error "X")
|
||||
(define-sign :Warn "!")
|
||||
(define-sign :SignHint "?")
|
||||
(define-sign :Info "i")
|
||||
|
||||
(def core-nmappings
|
||||
{
|
||||
|
||||
@@ -36,7 +36,15 @@
|
||||
:clojure-vim/vim-jack-in {} ; Conjure support - jack-in with nrepl dependencies
|
||||
:folke/lsp-colors.nvim {}
|
||||
:hashivim/vim-terraform {} ; Terraform
|
||||
:hrsh7th/nvim-compe {:mod :compe} ; autocomplete
|
||||
:hrsh7th/nvim-cmp {:requires [:hrsh7th/cmp-buffer
|
||||
:hrsh7th/cmp-nvim-lsp
|
||||
:hrsh7th/cmp-vsnip
|
||||
:hrsh7th/vim-vsnip-integ
|
||||
:PaterJason/cmp-conjure]
|
||||
:mod :cmp} ; autocomplete
|
||||
:hrsh7th/vim-vsnip {}
|
||||
:hrsh7th/vim-vsnip-integ {}
|
||||
:Iron-E/nvim-soluarized {}
|
||||
:jiangmiao/auto-pairs {} ; backets, parens, and quotes in pairs
|
||||
:junegunn/vim-easy-align {:mod :easyalign}
|
||||
:kovisoft/paredit {}
|
||||
@@ -49,7 +57,6 @@
|
||||
:p00f/nvim-ts-rainbow {}
|
||||
:radenling/vim-dispatch-neovim {} ; Clojure
|
||||
:skywind3000/asyncrun.vim {} ; :AsyncRun
|
||||
:tami5/compe-conjure {} ; autocomplete using conjure as a source
|
||||
:tpope/vim-classpath {}
|
||||
:tpope/vim-dadbod {}
|
||||
:tpope/vim-dispatch {} ; Conjure support - jack-in with nrepl dependencies
|
||||
|
||||
Reference in New Issue
Block a user