mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-23 09:18:44 +02:00
fix bug null-ls source
This commit is contained in:
parent
168685bcfb
commit
c57685dfac
3 changed files with 17 additions and 9 deletions
|
@ -110,12 +110,6 @@ vim.g.pcode_unregister_lsp = {
|
|||
vim.g.pcode_null_ls_ensure_installed = {
|
||||
"stylua",
|
||||
}
|
||||
local formatting = {}
|
||||
local diagnostics = {}
|
||||
vim.g.pcode_null_ls_sources = {
|
||||
formatting.stylua, -- tambahkan di bawah sini
|
||||
diagnostics.flake8, -- tambahkan di bawah sini
|
||||
}
|
||||
|
||||
-- dap instal hanya support linux dan mac
|
||||
-- https://github.com/jay-babu/mason-nvim-dap.nvim/blob/main/lua/mason-nvim-dap/mappings/source.lua
|
||||
|
|
10
lua/custom/null-ls.lua
Normal file
10
lua/custom/null-ls.lua
Normal file
|
@ -0,0 +1,10 @@
|
|||
local null_ls = require("null-ls")
|
||||
local formatting = null_ls.builtins.formatting
|
||||
local diagnostics = null_ls.builtins.diagnostics
|
||||
local m = {
|
||||
sources = {
|
||||
formatting.stylua, -- tambahkan di bawah sini
|
||||
diagnostics.flake8, -- tambahkan di bawah sini
|
||||
},
|
||||
}
|
||||
return m
|
Loading…
Add table
Add a link
Reference in a new issue