1
0
Fork 0

nvim: configuration updates

This commit is contained in:
Daniel Kempkens 2024-06-25 16:57:10 +02:00
parent 60eec41447
commit e372b15966
Signed by: daniel
SSH key fingerprint: SHA256:Ks/MyhQYcPRQiwMKLAKquWCdCPe3JXlb1WttgnAoSeM
5 changed files with 10 additions and 4 deletions

View file

@ -9,6 +9,7 @@
npairs (require :nvim-autopairs)
gitsigns (require :gitsigns)
neogit (require :neogit)
otter (require :otter)
wk (require :which-key)
repl (require :nifoc.repl)
repo (require :nifoc.repo)
@ -117,7 +118,7 @@
(keymap.set :n :<leader>lfi
#(telescope-builtin.lsp_implementations telescope-dropdown)
{: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"}))
(fn mod.terminal-open [bufnr]

View file

@ -82,6 +82,7 @@
kind (kind-fn entry vim-item)
strings (vim.split kind.kind "%s"
{:trimempty true})]
(set kind.dup 0)
(if (= entry.source.name :cmp_tabnine)
(do
(set kind.kind " 󱜚 ")
@ -102,7 +103,8 @@
(set kind.menu
(.. " ("
(or (. strings 2) "") ")"))))
kind))}})
kind))}
:experimental {:ghost_text true}})
(cmp.setup.cmdline "/"
{:sources (cmp.config.sources [{:name :nvim_lsp_document_symbol}]
[{:name :buffer}])

View file

@ -46,6 +46,7 @@
:fennel_ls
:html
:jsonls
:marksman
:svelte
:taplo]]
;; Default

View file

@ -1,11 +1,12 @@
(let [otter (require :otter)
languages [:bash :lua]
languages [:bash :markdown :lua]
completion true
diagnostics true
tsquery nil
enabled-filetypes [:elixir :nix]
enabled-filetypes [:elixir :markdown :nix]
augroup (vim.api.nvim_create_augroup :NifocOtter {:clear true})
aucmd vim.api.nvim_create_autocmd]
(otter.setup {:buffers {:set_filetype true} :handle_leading_whitespace true})
(each [_ ft (pairs enabled-filetypes)]
(aucmd :FileType {:pattern ft
:callback #(otter.activate languages completion

View file

@ -33,6 +33,7 @@ in
fennel-ls
#lexical
lua-language-server
marksman
nil
nodePackages.dockerfile-language-server-nodejs
nodePackages.svelte-language-server