nvim: configuration updates
This commit is contained in:
parent
60eec41447
commit
e372b15966
5 changed files with 10 additions and 4 deletions
|
@ -9,6 +9,7 @@
|
||||||
npairs (require :nvim-autopairs)
|
npairs (require :nvim-autopairs)
|
||||||
gitsigns (require :gitsigns)
|
gitsigns (require :gitsigns)
|
||||||
neogit (require :neogit)
|
neogit (require :neogit)
|
||||||
|
otter (require :otter)
|
||||||
wk (require :which-key)
|
wk (require :which-key)
|
||||||
repl (require :nifoc.repl)
|
repl (require :nifoc.repl)
|
||||||
repo (require :nifoc.repo)
|
repo (require :nifoc.repo)
|
||||||
|
@ -117,7 +118,7 @@
|
||||||
(keymap.set :n :<leader>lfi
|
(keymap.set :n :<leader>lfi
|
||||||
#(telescope-builtin.lsp_implementations telescope-dropdown)
|
#(telescope-builtin.lsp_implementations telescope-dropdown)
|
||||||
{:buffer bufnr :desc "Find Implementations"})
|
{:buffer bufnr :desc "Find Implementations"})
|
||||||
(keymap.set :n :K vim.lsp.buf.hover
|
(keymap.set :n :K otter.ask_hover
|
||||||
{:buffer bufnr :desc "Show Documentation"}))
|
{:buffer bufnr :desc "Show Documentation"}))
|
||||||
|
|
||||||
(fn mod.terminal-open [bufnr]
|
(fn mod.terminal-open [bufnr]
|
||||||
|
|
|
@ -82,6 +82,7 @@
|
||||||
kind (kind-fn entry vim-item)
|
kind (kind-fn entry vim-item)
|
||||||
strings (vim.split kind.kind "%s"
|
strings (vim.split kind.kind "%s"
|
||||||
{:trimempty true})]
|
{:trimempty true})]
|
||||||
|
(set kind.dup 0)
|
||||||
(if (= entry.source.name :cmp_tabnine)
|
(if (= entry.source.name :cmp_tabnine)
|
||||||
(do
|
(do
|
||||||
(set kind.kind " ")
|
(set kind.kind " ")
|
||||||
|
@ -102,7 +103,8 @@
|
||||||
(set kind.menu
|
(set kind.menu
|
||||||
(.. " ("
|
(.. " ("
|
||||||
(or (. strings 2) "") ")"))))
|
(or (. strings 2) "") ")"))))
|
||||||
kind))}})
|
kind))}
|
||||||
|
:experimental {:ghost_text true}})
|
||||||
(cmp.setup.cmdline "/"
|
(cmp.setup.cmdline "/"
|
||||||
{:sources (cmp.config.sources [{:name :nvim_lsp_document_symbol}]
|
{:sources (cmp.config.sources [{:name :nvim_lsp_document_symbol}]
|
||||||
[{:name :buffer}])
|
[{:name :buffer}])
|
||||||
|
|
|
@ -46,6 +46,7 @@
|
||||||
:fennel_ls
|
:fennel_ls
|
||||||
:html
|
:html
|
||||||
:jsonls
|
:jsonls
|
||||||
|
:marksman
|
||||||
:svelte
|
:svelte
|
||||||
:taplo]]
|
:taplo]]
|
||||||
;; Default
|
;; Default
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
(let [otter (require :otter)
|
(let [otter (require :otter)
|
||||||
languages [:bash :lua]
|
languages [:bash :markdown :lua]
|
||||||
completion true
|
completion true
|
||||||
diagnostics true
|
diagnostics true
|
||||||
tsquery nil
|
tsquery nil
|
||||||
enabled-filetypes [:elixir :nix]
|
enabled-filetypes [:elixir :markdown :nix]
|
||||||
augroup (vim.api.nvim_create_augroup :NifocOtter {:clear true})
|
augroup (vim.api.nvim_create_augroup :NifocOtter {:clear true})
|
||||||
aucmd vim.api.nvim_create_autocmd]
|
aucmd vim.api.nvim_create_autocmd]
|
||||||
|
(otter.setup {:buffers {:set_filetype true} :handle_leading_whitespace true})
|
||||||
(each [_ ft (pairs enabled-filetypes)]
|
(each [_ ft (pairs enabled-filetypes)]
|
||||||
(aucmd :FileType {:pattern ft
|
(aucmd :FileType {:pattern ft
|
||||||
:callback #(otter.activate languages completion
|
:callback #(otter.activate languages completion
|
||||||
|
|
|
@ -33,6 +33,7 @@ in
|
||||||
fennel-ls
|
fennel-ls
|
||||||
#lexical
|
#lexical
|
||||||
lua-language-server
|
lua-language-server
|
||||||
|
marksman
|
||||||
nil
|
nil
|
||||||
nodePackages.dockerfile-language-server-nodejs
|
nodePackages.dockerfile-language-server-nodejs
|
||||||
nodePackages.svelte-language-server
|
nodePackages.svelte-language-server
|
||||||
|
|
Loading…
Reference in a new issue