aboutsummaryrefslogtreecommitdiff
path: root/lua
diff options
context:
space:
mode:
Diffstat (limited to 'lua')
-rw-r--r--lua/pml68/configs/cmp.lua12
-rw-r--r--lua/pml68/configs/settings/lua_ls.lua11
2 files changed, 13 insertions, 10 deletions
diff --git a/lua/pml68/configs/cmp.lua b/lua/pml68/configs/cmp.lua
index eb25218..1f30321 100644
--- a/lua/pml68/configs/cmp.lua
+++ b/lua/pml68/configs/cmp.lua
@@ -1,17 +1,17 @@
local cmp = require("cmp")
cmp.setup({
- sources = {
+ sources = cmp.config.sources({
{ name = 'nvim_lsp' },
- { name = 'buffer' },
- { name = 'vimtex' },
- { name = 'crates' },
{ name = 'path' },
- },
+ { name = 'vimtex' },
+ { name = 'crates' }
+ }, {
+ { name = 'buffer' },
+ }),
window = {
completion = {
border = "rounded",
- winhighlight = "Normal:Normal",
scrollbar = false,
}
},
diff --git a/lua/pml68/configs/settings/lua_ls.lua b/lua/pml68/configs/settings/lua_ls.lua
index e4de5f2..a212aff 100644
--- a/lua/pml68/configs/settings/lua_ls.lua
+++ b/lua/pml68/configs/settings/lua_ls.lua
@@ -1,14 +1,17 @@
return {
settings = {
Lua = {
+ runtime = {
+ version = 'LuaJIT'
+ },
diagnostics = {
- globals = { "vim " },
+ globals = { "vim" },
},
workspace = {
+ checkThirdParty = false,
library = {
- [vim.fn.expand "$VIMRUNTIME/lua"] = true,
- [vim.fn.expand "$VIMRUNTIME/lua/vim/lsp"] = true,
- [vim.fn.stdpath "data" .. "/lazy/lazy.nvim/lua/lazy"] = true,
+ vim.env.VIMRUNTIME,
+ vim.fn.stdpath "data" .. "/lazy/lazy.nvim/lua/lazy",
},
maxPreload = 100000,
preloadFileSize = 10000,