diff options
| author | Denis Chevalier <perso@denischevalier.fr> | 2026-08-03 21:09:25 +0200 |
|---|---|---|
| committer | Denis Chevalier <perso@denischevalier.fr> | 2026-08-03 21:09:25 +0200 |
| commit | fef7a7ef4fa31170ee78dfb774934feb84a88423 (patch) | |
| tree | e88b5afd2feae6f9755e2ab345e6bca15a567d6a /dotfiles/.config/nvim/lua/plugins/none-ls.lua | |
| download | postinstall-fef7a7ef4fa31170ee78dfb774934feb84a88423.tar.gz postinstall-fef7a7ef4fa31170ee78dfb774934feb84a88423.tar.bz2 postinstall-fef7a7ef4fa31170ee78dfb774934feb84a88423.zip | |
arch postinstall scripts
Diffstat (limited to 'dotfiles/.config/nvim/lua/plugins/none-ls.lua')
| -rw-r--r-- | dotfiles/.config/nvim/lua/plugins/none-ls.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/dotfiles/.config/nvim/lua/plugins/none-ls.lua b/dotfiles/.config/nvim/lua/plugins/none-ls.lua new file mode 100644 index 0000000..2b0ed18 --- /dev/null +++ b/dotfiles/.config/nvim/lua/plugins/none-ls.lua @@ -0,0 +1,24 @@ +if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE + +-- Customize None-ls sources + +---@type LazySpec +return { + "nvimtools/none-ls.nvim", + opts = function(_, opts) + -- opts variable is the default configuration table for the setup function call + -- local null_ls = require "null-ls" + + -- Check supported formatters and linters + -- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting + -- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics + + -- Only insert new sources, do not replace the existing ones + -- (If you wish to replace, use `opts.sources = {}` instead of the `list_insert_unique` function) + opts.sources = require("astrocore").list_insert_unique(opts.sources, { + -- Set a formatter + -- null_ls.builtins.formatting.stylua, + -- null_ls.builtins.formatting.prettier, + }) + end, +} |
