mirror of
https://github.com/Hydroxycarbamide/astrovim_user.git
synced 2025-05-04 20:29:08 -04:00
Update to template v4
This commit is contained in:
parent
1db91514b9
commit
c635e63801
25 changed files with 558 additions and 309 deletions
22
lua/plugins/none-ls.lua
Normal file
22
lua/plugins/none-ls.lua
Normal file
|
@ -0,0 +1,22 @@
|
|||
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(_, config)
|
||||
-- config 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
|
||||
config.sources = {
|
||||
-- Set a formatter
|
||||
-- null_ls.builtins.formatting.stylua,
|
||||
-- null_ls.builtins.formatting.prettier,
|
||||
}
|
||||
return config -- return final config table
|
||||
end,
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue