Skip to content

Commit 46b1e8c

Browse files
committed
nvim 0.11 update
1 parent 6209dc8 commit 46b1e8c

7 files changed

Lines changed: 32 additions & 31 deletions

File tree

fnl/mapping.fnl

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -164,8 +164,3 @@
164164

165165
(map [:n] :<S-Tab> :za {:desc "Toggle fold under cursor"})
166166

167-
;; https://github.com/folke/which-key.nvim#%EF%B8%8F-configuration
168-
;; this is discouraged, but hey https://xkcd.com/1172
169-
170-
(map [:n] :f (bindcmd "WhichKey f"))
171-
(map [:n] :t (bindcmd "WhichKey t"))

fnl/mods/dev/avante.fnl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@
44

55
(avante_lib.load)
66

7-
(local config {:provider "ollama"
8-
:vendors {:ollama {:__inherited_from "openai"
7+
(local config {:providers {:ollama {:__inherited_from "openai"
98
:api_key_name ""
109
:endpoint "http://harlie:11434/v1"
1110
:model "marco-o1:7b-fp16"}}})

fnl/mods/lsp/lsp.fnl

Lines changed: 12 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,16 @@
5555
:rust_analyzer]
5656
:automatic_installation true})
5757

58-
(masonnullls.setup {:automatic_setup true})
58+
(let [fmt nullls.builtins.formatting]
59+
(nullls.setup {:sources [fmt.black
60+
fmt.stylua
61+
fmt.fnlfmt
62+
fmt.shfmt
63+
fmt.goimports
64+
fmt.gofumpt
65+
fmt.prettier]}))
66+
67+
(masonnullls.setup {:handlers {}})
5968

6069
(local on_attach
6170
(fn [client buf]
@@ -152,21 +161,8 @@
152161

153162
(let [get_servers (. masonlsp :get_installed_servers)]
154163
(each [_ server (ipairs (get_servers))]
155-
(let [server_config (. lspconfig server)
156-
opts (or (. lsp_opt server) {})]
164+
(let [opts (or (. lsp_opt server) {})]
157165
(tset opts :on_attach on_attach)
158166
(tset opts :capabilites (cmp_nvim_lsp.default_capabilities))
159-
(server_config.setup opts))))
160-
161-
;; https://github.com/jose-elias-alvarez/null-ls.nvim/blob/main/doc/BUILTIN_CONFIG.md#configuration
167+
(vim.lsp.config server opts))))
162168

163-
(nullls.setup {:sources [;(nullls.builtins.formatting.autopep8.with {:extra_args ["--indent-size=4"
164-
; "--ignore=E302,E121,E701"
165-
; "--max-line-length=150"]})
166-
nullls.builtins.formatting.black
167-
nullls.builtins.formatting.stylua
168-
nullls.builtins.formatting.fnlfmt
169-
nullls.builtins.formatting.shfmt
170-
nullls.builtins.formatting.goimports
171-
nullls.builtins.formatting.gofumpt
172-
nullls.builtins.formatting.prettier]})

fnl/mods/lsp/symbols.fnl

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
(module :mods.lsp.symbols {autoload {symbols-outline :symbols-outline}})
1+
(module :mods.lsp.symbols {autoload {outline :outline}})
22

3-
(symbols-outline.setup {:relative_width true :width 40})
3+
(outline.setup {:relative_width true :width 40})
44

5-
(map [:n] :<space>s symbols-outline.toggle_outline
5+
(map [:n] :<space>s outline.toggle_outline
66
{:desc "Toggle symbols outline"})

fnl/mods/misc/strudel.fnl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
(module mods.misc.strudel {autoload {strudel :strudel}})
2+
3+
(strudel.setup {})

fnl/mods/tools/which-key.fnl

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1-
(module mods.tools.which-key {autoload {which-key :which-key}})
1+
(module mods.tools.which-key {autoload {wk :which-key}})
2+
3+
(wk.setup
4+
{:triggers
5+
[ {:mode ["n"] 1 "f"}
6+
{:mode ["n"] 1 "t"} ]})
27

3-
(which-key.setup)

fnl/plugins.fnl

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@
9898
:ray-x/go.nvim {:mod :dev.go_nvim}
9999
:lewis6991/gitsigns.nvim {:mod :tools.gitsigns}
100100
:ray-x/lsp_signature.nvim {}
101-
:simrat39/symbols-outline.nvim {:mod :lsp.symbols}
101+
:hedyhli/outline.nvim {:mod :lsp.symbols}
102102
:wakatime/vim-wakatime {}
103103
:Vonr/align.nvim {:mod :tools.align}
104104
:VonHeikemen/lsp-zero.nvim {:requires [[:neovim/nvim-lspconfig]
@@ -112,8 +112,12 @@
112112
[:hrsh7th/cmp-nvim-lsp]
113113
[:hrsh7th/cmp-nvim-lua]
114114
[:onsails/lspkind.nvim]
115-
[:jose-elias-alvarez/null-ls.nvim]]
116-
:mod :lsp.lsp})
115+
[:nvimtools/none-ls.nvim]]
116+
:mod :lsp.lsp}
117+
118+
;; misc
119+
:gruvw/strudel.nvim {:run "npm install" :mod :misc.strudel})
120+
117121

118122
(map [:n] :<space>pi packer.install {:desc "Install plugins"})
119123
(map [:n] :<space>pu packer.update {:desc "Update plugins"})

0 commit comments

Comments
 (0)