diff --git a/lsp/lua_ls.lua b/lsp/lua_ls.lua new file mode 100644 index 0000000..f9c20a6 --- /dev/null +++ b/lsp/lua_ls.lua @@ -0,0 +1,9 @@ +return { + settings = { + Lua = { + diagnostics = { globals = { "vim" } }, + workspace = { checkThirdParty = false }, + telemetry = { enable = false }, + }, + }, +} diff --git a/lua/config/lazy.lua b/lua/config/lazy.lua index d0adb76..1434abf 100644 --- a/lua/config/lazy.lua +++ b/lua/config/lazy.lua @@ -12,8 +12,8 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then os.exit(1) end end -vim.opt.rtp:prepend(lazypath) +vim.opt.rtp:prepend(lazypath) vim.g.mapleader = " " vim.g.maplocalleader = " " diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua index 4061dfd..e6e457d 100644 --- a/lua/plugins/lsp.lua +++ b/lua/plugins/lsp.lua @@ -36,20 +36,6 @@ return { vim.lsp.config("*", { capabilities = caps }) - vim.lsp.config("lua_ls", { - settings = { - Lua = { - diagnostics = { - globals = { "vim" }, - }, - workspace = { - checkThirdParty = false, - }, - telemetry = { enable = false }, - }, - }, - }) - vim.lsp.enable { "lua_ls", } diff --git a/readme.md b/readme.md index e03cff0..88d0a52 100644 --- a/readme.md +++ b/readme.md @@ -1,7 +1,8 @@ -### Dependencies +## Dependencies -Formatters +### **Lua** ``` +lua-language-server stylua ```