From 671c1f489e318b2742c294fead82e41e26cab5f6 Mon Sep 17 00:00:00 2001 From: sinanmohd Date: Sat, 30 Sep 2023 17:38:26 +0530 Subject: config/nvim/lua_ls: mpv init --- .config/nvim/init.lua | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to '.config') 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() -- cgit v1.2.3