Compare commits
No commits in common. "46d1d9092d4f353de878d70f2f349636460d30bc" and "6b538682917b51fdc615075fa7d385f0126a87a9" have entirely different histories.
46d1d9092d
...
6b53868291
@ -189,7 +189,27 @@
|
|||||||
(use! :jose-elias-alvarez/null-ls.nvim
|
(use! :jose-elias-alvarez/null-ls.nvim
|
||||||
:after :nvim-lspconfig
|
:after :nvim-lspconfig
|
||||||
:config
|
:config
|
||||||
(module-call! :plugin.lsp :setup-null-ls))
|
(let [builtins (. (require :null-ls) :builtins)]
|
||||||
|
(setup! :null-ls
|
||||||
|
:sources [
|
||||||
|
builtins.formatting.astyle
|
||||||
|
builtins.formatting.prettier
|
||||||
|
builtins.formatting.yapf
|
||||||
|
builtins.formatting.fnlfmt
|
||||||
|
builtins.formatting.shfmt
|
||||||
|
builtins.formatting.cmake_format
|
||||||
|
builtins.formatting.latexindent
|
||||||
|
builtins.formatting.stylua
|
||||||
|
builtins.code_actions.shellcheck
|
||||||
|
(builtins.completion.spell.with { :filetypes [ :text
|
||||||
|
:markdown
|
||||||
|
:tex ]})
|
||||||
|
builtins.diagnostics.cmake_lint
|
||||||
|
builtins.diagnostics.codespell
|
||||||
|
builtins.diagnostics.shellcheck
|
||||||
|
(builtins.diagnostics.glslc.with
|
||||||
|
{ :extra_args [ "--target-env=opengl" ]})
|
||||||
|
])))
|
||||||
|
|
||||||
(use! :j-hui/fidget.nvim
|
(use! :j-hui/fidget.nvim
|
||||||
:after :nvim-lspconfig
|
:after :nvim-lspconfig
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
;;; lsp.fnl - lsp configurations
|
;;; lsp.fnl - lsp configurations
|
||||||
|
|
||||||
(import-macros {: bind! : setup!} :macros)
|
(import-macros {: bind!} :macros)
|
||||||
|
|
||||||
(fn on-attach [client buf]
|
(fn on-attach [client buf]
|
||||||
((. (. (require :cmp) :setup) :buffer) {
|
((. (. (require :cmp) :setup) :buffer) {
|
||||||
@ -109,26 +109,4 @@
|
|||||||
:diagnostics {
|
:diagnostics {
|
||||||
:globals [ "vim" ] }}})))
|
:globals [ "vim" ] }}})))
|
||||||
|
|
||||||
(fn setup-null-ls []
|
{ : configure : on-attach : get-data-dir }
|
||||||
(let [builtins (. (require :null-ls) :builtins)]
|
|
||||||
(setup! :null-ls
|
|
||||||
:sources [
|
|
||||||
builtins.formatting.astyle
|
|
||||||
builtins.formatting.prettier
|
|
||||||
builtins.formatting.yapf
|
|
||||||
builtins.formatting.fnlfmt
|
|
||||||
builtins.formatting.shfmt
|
|
||||||
builtins.formatting.cmake_format
|
|
||||||
builtins.formatting.latexindent
|
|
||||||
builtins.formatting.stylua
|
|
||||||
builtins.code_actions.shellcheck
|
|
||||||
(builtins.completion.spell.with { :filetypes [ :text
|
|
||||||
:markdown
|
|
||||||
:tex ]})
|
|
||||||
builtins.diagnostics.cmake_lint
|
|
||||||
builtins.diagnostics.codespell
|
|
||||||
builtins.diagnostics.shellcheck
|
|
||||||
(builtins.diagnostics.glslc.with
|
|
||||||
{ :extra_args [ "--target-env=opengl" ]})])))
|
|
||||||
|
|
||||||
{ : configure : on-attach : get-data-dir : setup-null-ls }
|
|
||||||
|
2
init.fnl
2
init.fnl
@ -81,7 +81,7 @@
|
|||||||
"Enabled Spellcheck"
|
"Enabled Spellcheck"
|
||||||
"Disabled Spellcheck")))))
|
"Disabled Spellcheck")))))
|
||||||
|
|
||||||
;; Enable spell in certain buffers
|
;; Enable spell in certian buffers
|
||||||
(hook! :FileType [ :text :markdown :tex :bib ]
|
(hook! :FileType [ :text :markdown :tex :bib ]
|
||||||
#(if (= (vim.fn.buflisted (vim.api.nvim_get_current_buf)) 1)
|
#(if (= (vim.fn.buflisted (vim.api.nvim_get_current_buf)) 1)
|
||||||
(set vim.opt_local.spell true)))
|
(set vim.opt_local.spell true)))
|
||||||
|
Reference in New Issue
Block a user