Skip to content

Commit ff84a79

Browse files
nvim: Updates
* Drop ~p00f/ colorschemes; the added treesitter queries seem to be breaking despite them not being activated at all, which is annoying * Disable max_lines warning in diffs.nvim * Effectively disable mini-completion auto-completion. May end up just backing it out altogether. The completion running all the time causes a lot of lag. * Add support for buf-config filetype for buf config files. Ref: neovim/nvim-lspconfig#4384
1 parent b6d47f2 commit ff84a79

2 files changed

Lines changed: 15 additions & 11 deletions

File tree

.config/nvim/init.fnl

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,9 @@
8484

8585
;;; Plugins
8686

87-
(set vim.g.diffs {:integrations {:fugitive true}})
87+
(set vim.g.diffs {:integrations {:fugitive true}
88+
;; Don't warn when hunks have too many lines to highlight.
89+
:highlights {:warn_max_lines false}})
8890

8991
(vim.api.nvim_create_autocmd :PackChanged
9092
{:callback (fn [ev]
@@ -141,9 +143,7 @@
141143
"https://github.com/rose-pine/neovim"
142144
"https://github.com/lunacookies/vim-plan9"
143145
"https://github.com/raphael-proust/vacme"
144-
"https://github.com/miikanissi/modus-themes.nvim"
145-
"https://git.sr.ht/~p00f/alabaster.nvim"
146-
"https://git.sr.ht/~p00f/moduster.nvim"])
146+
"https://github.com/miikanissi/modus-themes.nvim"])
147147

148148
;; mini-basics should be first, to set up mappings like <Leader>
149149
(let [mini-basics (require :mini.basics)]
@@ -267,7 +267,7 @@
267267
(mini-icons.setup {:style :ascii}))
268268

269269
(let [mini-completion (require :mini.completion)]
270-
(mini-completion.setup {}))
270+
(mini-completion.setup {:delay {:completion 1000000}}))
271271

272272
;;;; snippets
273273

@@ -423,7 +423,8 @@
423423
(let [filetype-to-langs {:c_sharp [:csharp]
424424
:bash [:shellsession :console :shell_session]
425425
:objc [:objectivec]
426-
:proto [:protobuf]}]
426+
:proto [:protobuf]
427+
:buf-config [:yaml]}]
427428
(each [filetype langs (pairs filetype-to-langs)]
428429
(vim.treesitter.language.register filetype langs)))
429430

@@ -513,7 +514,10 @@
513514
:gotmpl :gotmpl}
514515
:filename {:.ignore :gitignore
515516
:.dockerignore :gitignore
516-
:buf.lock :yaml
517+
:buf.yaml :buf-config
518+
:buf.gen.yaml :buf-config
519+
:buf.policy.yaml :buf-config
520+
:buf.lock :buf-config
517521
:uv.lock :toml}
518522
:pattern {".*/%.github/workflows/.*%.ya?ml" yaml-ghactions-filetype}})
519523

.config/nvim/init.lua

Lines changed: 4 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)