diff options
| author | pml68 <tutorialmester@gmail.com> | 2024-05-02 23:28:36 +0200 |
|---|---|---|
| committer | pml68 <tutorialmester@gmail.com> | 2024-05-02 23:28:36 +0200 |
| commit | 817c412a6d73e55262456da9772d1ec60a937523 (patch) | |
| tree | d5cd88d8b468071b7311abc968028e61fadbd0f1 /lua/pml68 | |
| parent | chore: change most lsp settings files' modes from executable(755) to normal(666) (diff) | |
| download | nvim-817c412a6d73e55262456da9772d1ec60a937523.tar.gz | |
refactor: minor things(lua_ls and cmp opts)
Diffstat (limited to 'lua/pml68')
| -rw-r--r-- | lua/pml68/configs/cmp.lua | 12 | ||||
| -rw-r--r-- | lua/pml68/configs/settings/lua_ls.lua | 11 |
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, |
