vim.o.autocomplete = true vim.o.complete = ".^5,t^3,w,o" vim.o.pummaxwidth = 40 vim.o.completeopt = 'menu,menuone,noselect' vim.lsp.config["lua"] = { cmd = { "lua-language-server" }, filetypes = { "lua" }, root_markers = { { ".luarc.json", ".luarc.jsonc" }, ".git" }, settings = { Lua = { runtime = { version = "LuaJIT", }, workspace = { library = vim.api.nvim_get_runtime_file("", true), }, }, }, } vim.lsp.enable("lua") vim.lsp.config["python"] = { cmd = { "pyright-langserver", "--stdio" }, filetypes = { "python" }, root_markers = { "pyproject.toml", ".git", }, settings = { python = { analysis = { autoSearchPaths = true, diagnosticMode = "workspace", useLibraryCodeForTypes = true, }, }, }, } vim.lsp.enable("python") -- vim.api.nvim_create_autocmd("LspAttach", { -- callback = function(args) -- local client = vim.lsp.get_client_by_id(args.data.client_id) -- -- if client:supports_method("textDocument/completion") then -- vim.bo[args.buf].omnifunc = "v:lua.vim.lsp.omnifunc" -- end -- end, -- })