summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/null-ls
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-10-20 08:48:21 +0200
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-10-20 08:48:21 +0200
commit70301470abcc1a96a7c164dbf8901aa6f1e52c12 (patch)
treed1f4c4d3562dab74c1b2384399bb86598cfb8ced /.config/nvim/lua/lsp/null-ls
parentf11eff223d021dd9553a7152278c00ca41b7ef37 (diff)
Update to colorscheme, ftplugin
Diffstat (limited to '.config/nvim/lua/lsp/null-ls')
-rw-r--r--.config/nvim/lua/lsp/null-ls/init.lua5
1 files changed, 5 insertions, 0 deletions
diff --git a/.config/nvim/lua/lsp/null-ls/init.lua b/.config/nvim/lua/lsp/null-ls/init.lua
index fde9fed..a18209b 100644
--- a/.config/nvim/lua/lsp/null-ls/init.lua
+++ b/.config/nvim/lua/lsp/null-ls/init.lua
@@ -12,6 +12,11 @@ function M:setup()
end
null_ls.config()
+ local default_opts = require("lsp").get_common_opts()
+
+ if vim.tbl_isempty(options.lsp.null_ls.setup or {}) then
+ options.lsp.null_ls.setup = default_opts
+ end
require("lspconfig")["null-ls"].setup(options.lsp.null_ls.setup)
for filetype, config in pairs(options.lang) do
if not vim.tbl_isempty(config.formatters) then