summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--.config/nvim/init.lua10
1 files changed, 9 insertions, 1 deletions
diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua
index 0d5f9e8..01df7e6 100644
--- a/.config/nvim/init.lua
+++ b/.config/nvim/init.lua
@@ -222,7 +222,15 @@ require("lspconfig").ccls.setup {
require("lspconfig").bashls.setup {}
require("lspconfig").nil_ls.setup {}
require'lspconfig'.pyright.setup {}
-require("lspconfig").lua_ls.setup(lsp.nvim_lua_ls())
+require("lspconfig").lua_ls.setup(lsp.nvim_lua_ls({
+ settings = {
+ Lua = {
+ diagnostics = {
+ globals = {'mp'} -- mpv global
+ }
+ }
+ }
+}))
lsp.setup()