this repo has no description

fix: update Nvim config to newest version

hauleth.dev 6a3d4027 1d37e5a4

verified
Changed files
+90 -33
modules
+79 -1
modules/nvim.nix
···
# plugins.lua-utils-nvim
plugins.neorg
plugins.neorg-telescope
-
plugins.nvim-treesitter.withAllGrammars
+
(plugins.nvim-treesitter.withPlugins (p: with p; [
+
awk
+
bash
+
c
+
clojure
+
comment
+
cpp
+
css
+
dhall
+
diff
+
djot
+
dot
+
editorconfig
+
eex
+
elixir
+
erlang
+
fennel
+
fish
+
git_config
+
git_rebase
+
gitattributes
+
gitcommit
+
gitignore
+
gleam
+
glsl
+
graphql
+
haskell
+
hcl
+
heex
+
html
+
hurl
+
ini
+
javascript
+
jq
+
json
+
julia
+
just
+
latex
+
lua
+
luadoc
+
luap
+
luau
+
make
+
markdown
+
markdown_inline
+
mermaid
+
meson
+
nginx
+
nickel
+
nix
+
norg
+
po
+
printf
+
prolog
+
promql
+
properties
+
python
+
r
+
racket
+
ruby
+
rust
+
scala
+
scheme
+
sql
+
ssh_config
+
superhtml
+
terraform
+
toml
+
toml
+
typescript
+
typst
+
vim
+
vimdoc
+
xml
+
yaml
+
zig
+
ziggy
+
ziggy_schema
+
]))
];
opt = [];
+2 -7
modules/nvim/fnl/langclient.fnl
···
(tset (require :lspconfig.ui.windows) :default_options {:border border})
(set lsp.handlers.textDocument/hover (lsp.with lsp.handlers.hover {:border border}))
(set lsp.handlers.textDocument/signatureHelp (lsp.with lsp.handlers.signature_help {:border border}))
-
(vim.diagnostic.config {:float {:border border} :virtual_text false}))
+
(vim.diagnostic.config {:float {:border border}}))
(augroup hauleth-lsp
(on LspAttach
···
(bmap :n :gD #(vim.lsp.buf.declaration)))
(when (capable? :documentFormattingProvider)
(bmap :n :Q #(vim.lsp.buf.format)))
-
(when (capable? :documentSymbolProvider)
-
(bmap :n :gO #(picker.lsp_document_symbols))))))
-
-
(map :n :grr #(picker.lsp_references))
-
(map :n :gra #(vim.lsp.buf.code_action))
-
(map :n :grs #(vim.lsp.buf.rename))
+
)))
(augroup hauleth-lsp-diagnostics
(on CursorHold "*" (vim.diagnostic.open_float {:focus false})))
+3 -2
modules/nvim/fnl/plugins.fnl
···
(pkg :j-hui/fidget.nvim {:tag :legacy})
; Code manipulation
-
(pkg :AndrewRadev/splitjoin.vim
-
{:keys [:gS :gJ]})
+
;(pkg :AndrewRadev/splitjoin.vim
+
; {:keys [:gS :gJ]})
+
(pkg :Wansmer/treesj)
(pkg :hauleth/sad.vim)
; Task running
+6 -5
modules/nvim/init.fnl
···
(let [unimpaired (fn [char left right]
(map :n (.. "[" char) left)
(map :n (.. "]" char) right))]
-
(unimpaired :w :gT :gt)
-
(unimpaired :q ":cprev" ":cnext")
-
(unimpaired :Q ":cpfile" ":cnfile")
-
(unimpaired :l ":lprev" ":lnext")
-
(unimpaired :L ":lpfile" ":lnfile")))
+
(unimpaired :w :gT :gt)))
(do ; Terminal mappings
; (map :n :<C-q>c ":term")
···
(cmd.new {:mods mods})
(fun.termopen command)
(cmd.startinsert)))
+
+
(do ; TreeSJ
+
(map :n :gS #(let [lib (require "treesj")
+
toggle (. lib :toggle)]
+
(toggle))))
(require :langclient)
-18
modules/nvim/plugin/unimpaired.vim
···
" Section: Line operations
-
function! s:BlankUp(count) abort
-
put!=repeat(nr2char(10), a:count)
-
']+1
-
silent! call repeat#set("\<Plug>unimpairedBlankUp", a:count)
-
endfunction
-
-
function! s:BlankDown(count) abort
-
put =repeat(nr2char(10), a:count)
-
'[-1
-
silent! call repeat#set("\<Plug>unimpairedBlankDown", a:count)
-
endfunction
-
-
nnoremap <silent> <Plug>unimpairedBlankUp :<C-U>call <SID>BlankUp(v:count1)<CR>
-
nnoremap <silent> <Plug>unimpairedBlankDown :<C-U>call <SID>BlankDown(v:count1)<CR>
-
-
nmap [<Space> <Plug>unimpairedBlankUp
-
nmap ]<Space> <Plug>unimpairedBlankDown
-
function! s:ExecMove(cmd) abort
let old_fdm = &foldmethod
if old_fdm !=# 'manual'